private void changeToolStripButton_Click(object sender, System.EventArgs e)
 {
     ServiceSplitLink currentServiceSchemeSplittingCalc = this.GetCurrentServiceSchemeSplittingCalc();
     if ((currentServiceSchemeSplittingCalc != null) && (currentServiceSchemeSplittingCalc != ServiceSplitLink.Null))
     {
         ServiceSplitLinkAddChangeForm form = new ServiceSplitLinkAddChangeForm(currentServiceSchemeSplittingCalc, currentServiceSchemeSplittingCalc.ServiceId);
         form.set_Text("Изменение записи");
         if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.Yes)
         {
             this.bsServiceSplitLinks.set_Position(this.bsServiceSplitLinks.IndexOf(currentServiceSchemeSplittingCalc));
         }
     }
 }
 private void addToolStripButton_Click(object sender, System.EventArgs e)
 {
     ServiceSplitLink serviceSplitLink = new ServiceSplitLink {
         ServiceId = this.serviceOld.Id
     };
     ServiceSplitLinkAddChangeForm form = new ServiceSplitLinkAddChangeForm(serviceSplitLink, serviceSplitLink.ServiceId);
     form.set_Text("Добавление записи");
     if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.Yes)
     {
         this.bsServiceSplitLinks.Add(serviceSplitLink);
         this.bsServiceSplitLinks.set_Position(this.bsServiceSplitLinks.IndexOf(serviceSplitLink));
     }
 }