예제 #1
0
        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");
        }
예제 #2
0
 public void Add(SeqParts parts)
 {
     PartsList.Add(parts.Name, parts);
 }