private void CreateAccountButtonClick(object sender, EventArgs e) { using (var form = new AccountCreationForm()) { var result = form.ShowDialog(); if (result != DialogResult.Cancel) { _accounts.Add(form.Account); } } }