Esempio n. 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);
         }
     }
 }
 private void CreateAccountButtonClick(object sender, EventArgs e)
 {
     using (var form = new AccountCreationForm()) {
         var result = form.ShowDialog();
         if (result != DialogResult.Cancel) {
             _accounts.Add(form.Account);
         }
     }
 }