예제 #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
파일: MainWindow.cs 프로젝트: xul8tr/CSharp
 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();
         }
     }
 }