Esempio n. 1
0
        //修改用戶
        private void contextMenuStrip_user_amd_user_Click(object sender, EventArgs e)
        {
            frmSysUserEdit frm = new frmSysUserEdit(cur_node_user_id, "E", "");

            frm.ShowDialog();
            if (frm.user_id_and_name != "")
            {
                cur_node_selected.Text = frm.user_id_and_name;
                cur_node_selected.Tag  = frm.user_id_and_typeid;
            }
            frm.Dispose();
        }
Esempio n. 2
0
        //新增用戶
        private void contextMenuStrip_group_add_user_Click(object sender, EventArgs e)
        {
            frmSysUserEdit frm = new frmSysUserEdit("", "NEW", str_cur_node_selected);

            frm.ShowDialog();
            if (frm.user_id_and_name != "")
            {
                TreeNode cur_edit_node = new TreeNode();
                cur_edit_node.Text       = frm.user_id_and_name;
                cur_edit_node.Tag        = frm.user_id_and_typeid;
                cur_edit_node.ImageIndex = cur_edit_node.SelectedImageIndex = 1;
                cur_node_selected.Nodes.Add(cur_edit_node);
            }
            frm.Dispose();
        }