//增加放大用户 private void button_AddUser_Click(object sender, EventArgs e) { FormAddModifyUser user = new FormAddModifyUser(); user.curr_CustomerId = currentUser.CustomerID; if (user.ShowDialog() == System.Windows.Forms.DialogResult.OK) { LoadUserConfig();//加载缓存 } }
void ModifyUser() { int id = GetUserID(); if (id == 0) { MessageBox.Show("请选择一条数据再修改!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } FormAddModifyUser user = new FormAddModifyUser(ManageSpace.Manage.Get_Base_UserConfigManageById(id)); user.curr_CustomerId = currentUser.CustomerID; if (user.ShowDialog() == System.Windows.Forms.DialogResult.OK) { LoadUserConfig();//加载缓存 } }