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