Пример #1
0
 private void CreateAccountButtonClick(object sender, EventArgs e)
 {
     using (var form = new AccountCreationForm()) {
         var result = form.ShowDialog();
         if (result != DialogResult.Cancel)
         {
             _accounts.Add(form.Account);
         }
     }
 }
Пример #2
0
 private void CreateAccountButtonClick(object sender, EventArgs e)
 {
     using (var form = new AccountCreationForm()) {
         var result = form.ShowDialog();
         if (result != DialogResult.Cancel) {
             _accounts.Add(form.Account);
         }
     }
 }