Exemplo n.º 1
0
 private void delmucToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MessageBoxHelper.Show("是否删除主表单[" + NowNode.Text + "]?删除后不能回复。") == DialogResult.Yes)
     {
         MainUserControlNode.DeleteMainUserControlNode(NowNode.NodeId);
         NowNode.Remove();
     }
 }
Exemplo n.º 2
0
        private void lvDelMuctoolStripMenuItem3_Click(object sender, EventArgs e)
        {
            if (this.lvClient.SelectedItems.Count <= 0)
            {
                return;
            }
            var key = lvClient.SelectedItems[0].SubItems[1].Text;

            if (MessageBoxHelper.Show("是否删除主表单[" + lvClient.SelectedItems[0].Text + "]?删除后不能回复。") == DialogResult.Yes)
            {
                MainUserControlNode.DeleteMainUserControlNode(key);
                lvClient.Items.Remove(lvClient.SelectedItems[0]);
            }
        }