Exemplo 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);
         }
     }
 }
Exemplo n.º 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);
         }
     }
 }