Example #1
0
 private void contextMenuServiceViewDescription_Click(object sender, EventArgs e)
 {
     DoService(data =>
     {
         XElement description = data.Service.Callback.GetServiceDescription();
         using (var form = new ServiceDescriptionForm())
         {
             form.ShowDescription(description);
         }
     });
 }
Example #2
0
        private void buttonViewRemoteServiceDescription_Click(object sender, EventArgs e)
        {
            ListViewItem item = listViewRemoteServices.SelectedItems[0];
            string       url  = item.SubItems[1].Text;

            QueryHttp(
                url,
                message =>
            {
                XElement description = XElement.Parse(message);
                using (var form = new ServiceDescriptionForm())
                {
                    form.ShowDescription(description);
                }
            },
                () => { }
                );
        }