Example #1
0
 private void btnSloService_Click(object sender, EventArgs e)
 {
     ActionHelper.Execute(delegate
     {
         var form = new AddNewServiceEndpoints();
         if (form.ShowDialog() == DialogResult.OK)
         {
             var service = (ServiceEndpointDto)form.DataContext;
             lstSloServices.Items.Add(service);
         }
     }, null);
 }
Example #2
0
 private void btnAddSloService_Click(object sender, EventArgs e)
 {
     ActionHelper.Execute(delegate
     {
         var form = new AddNewServiceEndpoints();
         if (form.ShowDialog() == DialogResult.OK)
         {
             var service = (ServiceEndpointDto)form.DataContext;
             var lstItem = new ListViewItem(new[] { service.Name, service.Endpoint, service.Binding })
             {
                 Tag = service
             };
             lstSloServices.Items.Add(lstItem);
         }
     }, null);
 }