コード例 #1
0
ファイル: AccountServiceView.cs プロジェクト: u4097/SQLScript
 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));
         }
     }
 }
コード例 #2
0
ファイル: AccountServiceView.cs プロジェクト: u4097/SQLScript
 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));
         }
     }
 }