Skip to content

Commit

Permalink
Added Notes field to the output as it appeared to be stored separatel…
Browse files Browse the repository at this point in the history
…y from other fields.
  • Loading branch information
konste committed Apr 25, 2014
1 parent 12ef713 commit 0b2038f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion SpbWalletExport/SpbWalletExport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,20 @@ private static void ProduceCards(string categoryId, XElement xParent)
foreach (var card in _cards.Where(x => x.ParentCategoryID == categoryId))
{
string name = Decrypt(card.Name);
//Debug.WriteLine(" " + name);
XElement xCard = new XElement("Card");
xCard.SetAttributeValue("Name", name);
xParent.Add(xCard);
ProduceCardFields(card.ID, xCard);
ProduceCardAttachments(card.ID, xCard);

if (card.Description != null)
{
string notes = Decrypt(card.Description);
//Debug.WriteLine("notes:" + notes);
XElement xNotes = new XElement("Notes");
xNotes.SetAttributeValue("Text", notes);
xCard.Add(xNotes);
}
}
}
private static void ProduceCardFields(string cardId, XElement xParent)
Expand Down

0 comments on commit 0b2038f

Please sign in to comment.