コード例 #1
0
 public ServiceSplitLinkAddChangeForm()
 {
     this._mServiceSplitLink = ServiceSplitLink.Null;
     this.isControl = false;
     this.InitializeComponent();
 }
コード例 #2
0
 public ServiceSplitLinkAddChangeForm(ServiceSplitLink serviceSplitLink, long serviceId)
     : this()
 {
     this._mServiceSplitLink = serviceSplitLink;
     this._mServiceSplitLink.ServiceId = serviceId;
 }
コード例 #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));
     }
 }