private void contextMenuServiceViewDescription_Click(object sender, EventArgs e) { DoService(data => { XElement description = data.Service.Callback.GetServiceDescription(); using (var form = new ServiceDescriptionForm()) { form.ShowDescription(description); } }); }
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); } }, () => { } ); }