public ServiceSplitLinkAddChangeForm()
 {
     this._mServiceSplitLink = ServiceSplitLink.Null;
     this.isControl = false;
     this.InitializeComponent();
 }
 public ServiceSplitLinkAddChangeForm(ServiceSplitLink serviceSplitLink, long serviceId)
     : this()
 {
     this._mServiceSplitLink = serviceSplitLink;
     this._mServiceSplitLink.ServiceId = serviceId;
 }
Exemplo n.º 3
0
 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));
     }
 }