Beispiel #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmUser f = new frmUser();
     if (f.ShowDialog() == DialogResult.OK)
     {
         Fill();
     }
 }
Beispiel #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int id = GetSelectedUserID();

            if (id > 0)
            {
                frmUser f = new frmUser();
                f.Edit = true;
                f.UserID = id;
                f.User = GetSelectedUser();
                f.Role = GetSelectedRole();

                if (f.ShowDialog() == DialogResult.OK)
                {
                    Fill();
                }
            }
        }