示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FormUser pFormAddUser = new FormUser(OperationType.Add);

            if (pFormAddUser.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
            {
                this.GetUsers(this.Pac);

                MessageBox.Show(this, "用户注册成功", "提示");
            }
        }
示例#2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (this.currentUser != null)
     {
         FormUser pFormUser = new FormUser(OperationType.Edit, this.currentUser);
         if (pFormUser.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
         {
             this.GetUsers(this.Pac);
             MessageBox.Show(this, "用户编辑成功", "提示");
         }
     }
 }