public virtual void Delete()
 {
     if (!InReadOnlyMode)
     {
         SPMReflection.CallMethod(this.SPObject, "Delete", new object[] { });
     }
 }
Exemple #2
0
        protected override void OnClick(EventArgs e)
        {
            if (!CanSelect)
            {
                return;
            }

            var result = MessageBox.Show(String.Format(SPMLocalization.GetString("Message_DeleteWarning"), TreeNode.Text),
                                         SPMLocalization.GetString("Delete_Text"), MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (result == DialogResult.Yes)
            {
                var parent = TreeNode.Parent as SPTreeNode;
                Program.Window.Explorer.SelectedNode = parent;
                SPMReflection.CallMethod(TreeNode.SPObject, "Delete", new object[] { });
                TreeNode.Remove();
            }
        }
 public virtual void Update()
 {
     SPMReflection.CallMethod(this.SPObject, "Update", new object[] { });
 }
 public virtual void Delete()
 {
     SPMReflection.CallMethod(this.Tag, "Delete", new object[] { });
 }