private void btnChange_Click(object sender, System.EventArgs e)
 {
     AccountService accountService = this.GetAccountService();
     if (accountService == AccountService.Null)
     {
         Messages.ShowMessage("Выберите услугу лицевого счета");
     }
     else
     {
         AccountServiceAddChangeForm form = new AccountServiceAddChangeForm(accountService);
         if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
         {
             this.UpdateBindingAccountServices();
             this.bsAccountServices.set_Position(this.bsAccountServices.IndexOf(accountService));
         }
     }
 }
 private void btnAdd_Click(object sender, System.EventArgs e)
 {
     if (this.m_Account == Account.Null)
     {
         Messages.ShowMessage("Выберите лицевой счет");
     }
     else
     {
         AccountService accountService = new AccountService {
             AccountId = this.m_Account.Id,
             ApartmentId = this.m_Account.ApartmentId
         };
         AccountServiceAddChangeForm form = new AccountServiceAddChangeForm(accountService);
         if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
         {
             this.UpdateBindingAccountServices();
             this.bsAccountServices.set_Position(this.bsAccountServices.IndexOf(accountService));
         }
     }
 }