private void TestData() { SeqParts parts; SeqPart sp; parts = new SeqParts("test A"); sp = new SeqPart("A1", "titleA1", "descriptionA1"); parts.AddPart(sp); sp = new SeqPart("A2", "titleA2", "descriptionA2"); parts.AddPart(sp); PartsList.Add("P1", parts); parts = new SeqParts("test B"); sp = new SeqPart("B1", "titleB1", "descriptionB1"); parts.AddPart(sp); sp = new SeqPart("B2", "titleB2", "descriptionB2"); parts.AddPart(sp); PartsList.Add("P2", parts); OnPropertyChange("PartsList"); }
public void TestData() { SeqPart sp; List <SeqPart> Parts; SeqItem si; Parts = new List <SeqPart>(2); sp = new SeqPart("A1", "Title A1", "desc A1"); sp.Test = "John"; Parts.Add(sp); sp = new SeqPart("A2", "Title A2", "desc A2"); sp.Test = "Jane"; Parts.Add(sp); si = new SeqItem("test"); si.AddItem(Parts); Items.Add("k1", si); Parts = new List <SeqPart>(2); sp = new SeqPart("B1", "Title B1", "desc B1"); sp.Test = "Chuck"; Parts.Add(sp); sp = new SeqPart("B2", "Title B2", "desc B2"); sp.Test = "Bob"; Parts.Add(sp); si = new SeqItem("test"); si.AddItem(Parts); Items.Add("k2", si); OnPropertyChange("Items"); }
public void AddPart(SeqPart part) { Parts.Add(part.Code, part); OnPropertyChange("Parts"); }