private void tsbEdit_Click(object sender, System.EventArgs e) { BenefitDebt benefitDebt = this.bsBenefitDebts.get_Current() as BenefitDebt; if (benefitDebt != null) { BenefitDebtAddForm form = new BenefitDebtAddForm(this.m_AccountService, benefitDebt); form.ShowDialog(this); if (form.DialogResult == System.Windows.Forms.DialogResult.OK) { this.ReloadBenefitDebts(); } } }
private void tsbAdd_Click(object sender, System.EventArgs e) { BenefitDebtAddForm form = new BenefitDebtAddForm(this.m_AccountService); form.ShowDialog(this); if (form.DialogResult == System.Windows.Forms.DialogResult.OK) { this.ReloadBenefitDebts(); } }