Exemple #1
0
        private void Add_User_Click(object sender, EventArgs e)
        {
            Add_Edit_User AddUser = new Add_Edit_User(1, CurrentUser, Menu, this);

            AddUser.ShowDialog();
            this.Refresh();
        }
Exemple #2
0
 private void Edit_User_Click(object sender, EventArgs e)
 {
     if (this.Users_List_View.SelectedRows.Count == 1)
     {
         Add_Edit_User EditUser = new Add_Edit_User(2, CurrentUser, Menu, this);
         EditUser.SetDataBeforeEdit(this.Users_List_View, this.Users_List_View.CurrentRow.Index);
         EditUser.ShowDialog();
         this.Refresh();
     }
     else
     {
         MessageBox.Show("Select ONE User To Edit");
     }
 }