Пример #1
0
 public DohEdit(Doh ViewItem)
 {
     this.ViewItem = ViewItem;
     InitializeComponent();
     PostInitialization(ViewItem);
     openFileDialog.FileOk += new CancelEventHandler(OpenFileOK);
     InitialzieDoh();
 }
Пример #2
0
 public void CreateChildNode()
 {
     if (!Child.Equals(null))
     {
         throw new Exception("Doh already has a child Doh. (Sekai.Doh.CreateChildNode)");
     }
     Child = new Doh();
 }
Пример #3
0
 public void InsertNode(bool GoesBeforeThis, Doh ToInsert)
 {
     if (GoesBeforeThis)
     {
         ToInsert.Parent       = Parent;
         ToInsert.Child        = this;
         ToInsert.Parent.Child = ToInsert;
         Parent = ToInsert;
     }
     else
     {
         ToInsert.Child        = Child;
         ToInsert.Parent       = this;
         ToInsert.Child.Parent = ToInsert;
         Child = ToInsert;
     }
 }