예제 #1
0
 private void tsbDebtActionNoticeChange_Click(object sender, System.EventArgs e)
 {
     DebtActionNotice debtActionNotice = (this.bsDebtActionNotices.get_Current() as DebtActionNotice) ?? DebtActionNotice.Null;
     if (debtActionNotice == DebtActionNotice.Null)
     {
         Messages.ShowMessage("Выберите элемент для редактирования");
     }
     else
     {
         DebtActionNoticeAddChangeForm form = new DebtActionNoticeAddChangeForm(debtActionNotice);
         if (form.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
         {
             this.bsDebtActionsFill();
         }
     }
 }
예제 #2
0
 private void tsbDebtActionNoticeAdd_Click(object sender, System.EventArgs e)
 {
     if (this.m_selectDebtAction != DebtAction.Null)
     {
         DebtActionNotice debtActionNotice = new DebtActionNotice {
             DebtActionId = this.m_selectDebtAction.Id
         };
         DebtActionNoticeAddChangeForm form = new DebtActionNoticeAddChangeForm(debtActionNotice);
         if (form.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
         {
             this.bsDebtActionsFill();
         }
     }
 }