Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyJournal
- {
- public List<MyJournalEntry> journal;
- public MyJournal()
- {
- journal = new List<MyJournalEntry>();
- }
- public void CollectionCountChanged(object sourse, CollectionHandlerEventArgs e)
- {
- JournalEntry je = new JournalEntry(e.NameCollection, e.ChangeCollection, e.Pair.ToString());
- journal.Add(je);
- }
- }
- public class MyJournalEntry
- {
- public string NameCollection { get; set; }
- public string ChangeCollection { get; set; }
- public Pair Pair { get; set; }
- public MyJournalEntry(string collectionName, string changes, Pair pair)
- {
- NameCollection = collectionName;
- ChangeCollection = changes;
- Pair = pair;
- }
- public override string ToString()
- {
- return NameCollection + ", " + ChangeCollection + ", " + Pair;
- }
- }
Add Comment
Please, Sign In to add comment