Пример #1
0
 private void DisplaySelectUsersDialogAndUpdateUserList()
 {
     using (EditUsersDialog selectUserDialog = new EditUsersDialog(Users))
     {
         DialogResult dr = selectUserDialog.ShowDialog();
         if (dr == DialogResult.OK)
         {
             Users = selectUserDialog.Users;
             SaveUserList();
         }
     }
 }
Пример #2
0
 private void button_SelectUsers_Click(object sender, EventArgs e)
 {
     using (EditUsersDialog selectUserDialog = new EditUsersDialog(Users))
     {
         DialogResult dr = selectUserDialog.ShowDialog();
         if (dr == DialogResult.OK)
         {
             Users = selectUserDialog.Users;
             SaveUserList();
         }
     }
 }