public NewMainForm()
 {
     InitializeComponent();
     Text = string.Format("{0} version {1}", AboutBox.AssemblyTitle, AboutBox.AssemblyVersion);
     wsdl = new Wsdl();
     Control.CheckForIllegalCrossThreadCalls = false;
     richWsdl.Font = Configuration.MasterConfig.UiSettings.WsdlFont;
     comboEndPointUri.Items.AddRange(Configuration.MasterConfig.InvokeSettings.RecentlyUsedUris);
     if (comboEndPointUri.Items.Count > 0)
         comboEndPointUri.SelectedIndex = 0;
     richMessage.Font = Configuration.MasterConfig.UiSettings.MessageFont;
     richRequest.Font = Configuration.MasterConfig.UiSettings.ReqRespFont;
     richResponse.Font = Configuration.MasterConfig.UiSettings.ReqRespFont;
 }
        private void buttonGet_Click(object sender, EventArgs e)
        {
            if (this.buttonGet.Text == "Get")
            {
                string text = this.comboEndPointUri.Text;
                if (!string.IsNullOrEmpty(text))
                {
                    ClearAllTabs();
                    TabPage selectedTab = this.tabMain.SelectedTab;
                    tabMain.SelectedTab = this.tabPageMessage;
                    wsdl.Reset();
                    wsdl.Paths.Add(text);
                    new Thread(new ThreadStart(this.wsdl.Generate)).Start();
                    buttonGet.Text = "Cancel";
                }
            }
            else
            {
                buttonGet.Text = "Get";
                ShowMessageInternal(this, MessageType.Failure, "Cancelled");
                wsdl.Reset();
                wsdl = new Wsdl();
            }

        }