Esempio n. 1
0
 void SetBodyParameters(Request Req, bool HideFormatPluginsGrid)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetBodyParameters_d InvokeDelegate_d = new SetBodyParameters_d(SetBodyParameters);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Req, HideFormatPluginsGrid });
     }
     else
     {
         BodyParametersGrid.Rows.Clear();
         foreach (string Name in Req.Body.GetNames())
         {
             foreach (string Value in Req.Body.GetAll(Name))
             {
                 int RowId = BodyParametersGrid.Rows.Add(new object[] { Name, Value, Properties.Resources.Glass });
                 BodyParametersGrid.Rows[RowId].Cells[1].ReadOnly = this.ReadOnly;
             }
         }
         FormatPluginsGrid.Rows[0].Cells[0].Value = true;
         if (HideFormatPluginsGrid)
         {
             HideBodyFormatOptions();
         }
         else
         {
             ShowBodyFormatOptions();
         }
         this.ResetBodyParametersChangedStatus();
     }
 }
Esempio n. 2
0
 void SetBodyParameters(Request Req, bool HideFormatPluginsGrid)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetBodyParameters_d InvokeDelegate_d = new SetBodyParameters_d(SetBodyParameters);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Req, HideFormatPluginsGrid });
     }
     else
     {
         BodyParametersGrid.Rows.Clear();
         foreach (string Name in Req.Body.GetNames())
         {
             foreach (string Value in Req.Body.GetAll(Name))
             {
                 int RowId = BodyParametersGrid.Rows.Add(new object[] { Name, Value, Properties.Resources.Glass });
                 BodyParametersGrid.Rows[RowId].Cells[1].ReadOnly = this.ReadOnly;
             }
         }
         FormatPluginsGrid.Rows[0].Cells[0].Value = true;
         if (HideFormatPluginsGrid)
         {
             HideBodyFormatOptions();
         }
         else
         {
             ShowBodyFormatOptions();
         }
         this.ResetBodyParametersChangedStatus();
     }
 }
Esempio n. 3
0
 void SetBodyParameters(Request Req)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetBodyParameters_d InvokeDelegate_d = new SetBodyParameters_d(SetBodyParameters);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Req });
     }
     else
     {
         BodyNormalTypeParametersGrid.Rows.Clear();
         foreach (string Name in Req.Body.GetNames())
         {
             foreach (string Value in Req.Body.GetAll(Name))
             {
                 int RowId = BodyNormalTypeParametersGrid.Rows.Add(new object[] { Name, Value });
                 BodyNormalTypeParametersGrid.Rows[RowId].Cells[1].ReadOnly = this.ReadOnly;
             }
         }
         this.ResetBodyTypeNomarlParametersChangedStatus();
     }
 }