private void tsbChange_Click(object sender, System.EventArgs e)
 {
     this.m_JnBenefit = (this.bsAccountServiceJournalBenefits.get_Current() == null) ? JnBenefit.Null : ((JnBenefit) this.bsAccountServiceJournalBenefits.get_Current());
     if (this.m_JnBenefit != JnBenefit.Null)
     {
         AccountServiceJournalBenefitsAddChangeForm form = new AccountServiceJournalBenefitsAddChangeForm(this.m_JnBenefit, this.m_Jn.ApartmentId);
         form.set_Text("Изменение");
         form.ShowDialog(this);
     }
 }
 private void tsbAdd_Click(object sender, System.EventArgs e)
 {
     JnBenefit jnBenefit = new JnBenefit {
         JnId = this.m_Jn.Id
     };
     AccountServiceJournalBenefitsAddChangeForm form = new AccountServiceJournalBenefitsAddChangeForm(jnBenefit, this.m_Jn.ApartmentId);
     form.set_Text("Добавление");
     if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
     {
         this.bsAccountServiceJournalBenefits.Add(jnBenefit);
     }
 }