示例#1
0
        void ButtonAddUserClick(object sender, EventArgs e)
        {
            //新用户
            FormUser tF = new FormUser();

            tF.Text = "用户管理-新增";
            tF.ShowDialog();
            RefreshUsers();
        }
示例#2
0
 void ButtonModifyUserClick(object sender, EventArgs e)
 {
     //修改
     if (dataGridViewUsers.CurrentRow != null)
     {
         FormUser tF = new FormUser();
         tF.iUserID = Convert.ToInt32(dataGridViewUsers.CurrentRow.Cells[0].Value.ToString());
         tF.Text    = "用户管理-修改";
         tF.ShowDialog();
     }
     else
     {
         MessageBox.Show("请选择要修改的用户!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     RefreshUsers();
 }