Beispiel #1
0
        private void butMenuDel_Click(object sender, EventArgs e)
        {
            int    id   = -1;
            string name = txtMenuname.Text.Trim();

            if (chkMenuName.SelectedItems.Count >= 0)
            {
                id = Getmenuid();
            }
            if (id < 0)
            {
                MessageBox.Show("请选择删除的菜单!");
                return;
            }
            try {
                T_Sysset.DelMenuSet(id, name);
            } catch {
            } finally {
                Getmenuset();
            }
        }