private void tsbCounterChange_Click_1(object sender, System.EventArgs e)
 {
     if ((this.m_House != AIS.SN.Model.DomainObjects.House.Null) && ((this.bsHouseCounterAreas.get_Current() != null) && (this.bsHouseCounterAreas.get_Current() != HouseCounterArea.Null)))
     {
         HistoryHouseCounterAreasAddChangeForm form = new HistoryHouseCounterAreasAddChangeForm(this.bsHouseCounterAreas.get_Current() as HouseCounterArea);
         form.set_Text("Изменение истории площади дома");
         form.btnAddChange.set_Text("Изменить");
         if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
         {
             this.bsHouseCounterAreas.set_DataSource(HouseCounterArea.FindAllByHouseCounterId(this.m_HouseCounter.Id));
         }
     }
 }
 private void tsbCounterAdd_Click_1(object sender, System.EventArgs e)
 {
     HistoryHouseCounterAreasAddChangeForm form = new HistoryHouseCounterAreasAddChangeForm(this.m_House.Id, this.m_HouseCounter.Id);
     form.set_Text("Добавление записи в историю площади дома");
     form.ShowDialog(this);
     if (form.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         form.HouseCounterArea.SaveChanges();
         this.bsHouseCounterAreas.Add(form.HouseCounterArea);
     }
 }