public override ITreeConfigNode NodeAddNew() { var node = new MainViewForm(this.Parent); (this.Parent as GroupListMainViewForms).Add(node); this.GetUniqueName(MainViewForm.DefaultName, node, (this.Parent as GroupListMainViewForms).ListMainViewForms); this.SetSelected(node); return(node); }
public override ITreeConfigNode NodeAddClone() { var node = MainViewForm.Clone(this.Parent, this, true, true); node.Parent = this.Parent; (this.Parent as GroupListMainViewForms).Add(node); this._Name = this._Name + "2"; this.SetSelected(node); return(node); }