Esempio n. 1
0
 private void tsbChange_Click(object sender, System.EventArgs e)
 {
     ServiceCalcAlg serviceCalcAlg = (ServiceCalcAlg) this.bsServiceCalcAlg.get_Current();
     if (serviceCalcAlg == null)
     {
         Messages.ShowMessage("Выберите методику");
     }
     ServiceCalcAlgAddForm form = new ServiceCalcAlgAddForm(serviceCalcAlg, this.m_service);
     form.ShowDialog();
     this.bsServiceCalcAlg.set_DataSource(Mappers.ServiceCalcAlgMapper.FindByServiceId(this.m_service.Id));
     this.bsServiceCalcAlg.set_Position(this.bsServiceCalcAlg.IndexOf(form.m_ServiceCalcAlg));
 }
Esempio n. 2
0
 private void tsbAdd_Click(object sender, System.EventArgs e)
 {
     ServiceCalcAlgAddForm form = new ServiceCalcAlgAddForm(this.m_service);
     form.ShowDialog();
     this.bsServiceCalcAlg.set_DataSource(Mappers.ServiceCalcAlgMapper.FindByServiceId(this.m_service.Id));
     this.bsServiceCalcAlg.set_Position(this.bsServiceCalcAlg.IndexOf(form.m_ServiceCalcAlg));
 }