Beispiel #1
0
        private void modi_Click(object sender, EventArgs e)
        {
            ServiceItem srvItem = null;

            for (int index = 0; index < _dataList.Items.Count; index++)
            {
                ListViewItem item = _dataList.Items[index];

                if (item.Checked)
                {
                    srvItem = item.Tag as ServiceItem;
                    break;
                }
            }

            if (srvItem == null)
            {
                MessageBox.Show("未选中需要修改的数据");
                return;
            }

            MenuMangeForm form = new MenuMangeForm();

            form.SrvItem  = srvItem;
            form.OperType = ServiceData.OpertorType.Modi;

            if (form.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("操作成功");
                HsWebForm.g_WebForm.main_workSpace.SrvTree.loadFunctionTree();
            }
        }
Beispiel #2
0
        private void add_Click(object sender, EventArgs e)
        {
            MenuMangeForm form = new MenuMangeForm();

            form.SrvItem  = GlobalConfig.getMenu(_item.getOperCommand(OpertorType.Add));
            form.OperType = ServiceData.OpertorType.Add;

            if (form.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("操作成功");
                HsWebForm.g_WebForm.main_workSpace.SrvTree.loadFunctionTree();
            }
        }