private void ConMenuDel_Click(object sender, EventArgs e) { ListViewItem lv = GetListViewSelected(); _regCopyPath = lv.ToolTipText; if (string.IsNullOrEmpty(_regCopyPath)) { MessageBox.Show("请选择有效的节点!", "提示"); return; } else { RegHelper.DeleteBranchName(_regCopyPath); Refresh(); } }
/// <summary> /// 删除项 /// </summary> /// <param name="sourceName">删除项的完全路径</param> public void DelBranch(string sourceName) { RegHelper.DeleteBranchName(sourceName); }