Beispiel #1
0
 private void btnAddServiceGroup_Click(object sender, System.EventArgs e)
 {
     ServiceGroup sg = new ServiceGroup();
     AddChangeServiceGroupForm form = new AddChangeServiceGroupForm(sg);
     form.ShowDialog();
     if (form.DialogResult == System.Windows.Forms.DialogResult.Yes)
     {
         this.bsServiceGroups.Add(sg);
         this.bsServiceGroups.set_Position(this.bsServiceGroups.IndexOf(sg));
     }
 }
 public AddChangeServiceGroupForm(ServiceGroup sg)
     : this()
 {
     this.m_ServiceGroup = sg;
 }