Exemplo n.º 1
0
        void ClearData()
        {
            if (this.BaseTabs.InvokeRequired)
            {
                ClearData_d InvokeDelegate_d = new ClearData_d(ClearData);
                this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { });
            }
            else
            {
                RoundTripLbl.Text = "";
                HeadersTBP.ClearData();
                BodyTBP.ClearData();
                FormatXmlTBP.ClearData();
                ConvertXmlToObjectBtn.Text = "Convert this XML to Object";
                BodyFormatPluginsParametersGrid.Rows.Clear();
                ReflectionRTB.Text = "";
                ClearEditTab();
                foreach (DataGridViewRow Row in FormatPluginsGrid.Rows)
                {
                    Row.Cells[0].Value = false;
                }
                if (FormatPluginCallingThread != null)
                {
                    try
                    {
                        FormatPluginCallingThread.Abort();
                    }
                    catch { }
                }

                if (ReflectionCheckingThread != null)
                {
                    try
                    {
                        ReflectionCheckingThread.Abort();
                    }
                    catch { }
                }
                ShowStatusMsg("");
                ShowProgressBar(false);
            }
        }
Exemplo n.º 2
0
 void ClearData()
 {
     if (this.BaseTabs.InvokeRequired)
     {
         ClearData_d InvokeDelegate_d = new ClearData_d(ClearData);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { });
     }
     else
     {
         UseSSLCB.Checked = false;
         HeadersTBP.ClearData();
         BodyTBP.ClearData();
         FormatXmlTBP.ClearData();
         ConvertXmlToObjectBtn.Text = "Convert this XML to Object";
         UrlPathPartsParametersGrid.Rows.Clear();
         QueryParametersGrid.Rows.Clear();
         CookieParametersGrid.Rows.Clear();
         HeadersParametersGrid.Rows.Clear();
         BodyParametersGrid.Rows.Clear();
         ClearEditTab();
         foreach (DataGridViewRow Row in FormatPluginsGrid.Rows)
         {
             Row.Cells[0].Value = false;
         }
         if (FormatPluginCallingThread != null)
         {
             try
             {
                 FormatPluginCallingThread.Abort();
             }
             catch { }
         }
         ShowStatusMsg("");
         ShowProgressBar(false);
     }
 }