Ejemplo n.º 1
0
 private void tsbChangetsbAddPersonBenefitOut_Click(object sender, System.EventArgs e)
 {
     PersonBenefitOut pbo = (PersonBenefitOut) this.bsPersonBenefitOuts.get_Current();
     if (pbo != null)
     {
         PersonBenefitOutAddChangeForm form = new PersonBenefitOutAddChangeForm(pbo);
         form.ShowDialog();
         if (form.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             this.UpdateBindingSourcePersonBenefitOuts();
         }
     }
     else
     {
         System.Windows.Forms.MessageBox.Show("Выберите элемент для редактирования", "Ошибка", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Hand);
     }
 }
Ejemplo n.º 2
0
 private void tsbAddPersonBenefitOut_Click(object sender, System.EventArgs e)
 {
     PersonBenefitOutAddChangeForm form = new PersonBenefitOutAddChangeForm(this.m_ApartmentResident);
     form.ShowDialog();
     if (form.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         this.UpdateBindingSourcePersonBenefitOuts();
     }
 }