public virtual void MenuItemPaste_Action() { object DeserializedNode = GetModelDesignerNodeFromStringRepresentationFromClipboard(); if (ShouldPasteMenuBeEnabled(DeserializedNode)) { this.Add(NodeFactory.Create(DeserializedNode)); return; } MessageBoxHandling.Show(Resources.WrapperTreeNode_menu_paste_cannot_be_done); }
internal void AddMenuItemDelete_Click(object sender, EventArgs e) { string msg = string.Format(WrapperResources.DeleteObjectWarning, this.Text, this.ToolTipText); if (MessageBoxHandling.Show ( msg, WrapperResources.DeleteObjectCaption, MessageBoxButtons.OKCancel, MessageBoxIcon.Question ) != DialogResult.OK) { return; } this.Parent.Remove(this); }