Exemplo n.º 1
0
 public DohEdit(Doh ViewItem)
 {
     this.ViewItem = ViewItem;
     InitializeComponent();
     PostInitialization(ViewItem);
     openFileDialog.FileOk += new CancelEventHandler(OpenFileOK);
     InitialzieDoh();
 }
Exemplo n.º 2
0
 public void CreateChildNode()
 {
     if (!Child.Equals(null))
     {
         throw new Exception("Doh already has a child Doh. (Sekai.Doh.CreateChildNode)");
     }
     Child = new Doh();
 }
Exemplo n.º 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;
     }
 }