Ejemplo n.º 1
0
 public void SetReadOnly(bool ReadOnly)
 {
     if (this.InvokeRequired)
     {
         SetReadOnly_d SROD = new SetReadOnly_d(SetReadOnly);
         this.Invoke(SROD, new object[] { ReadOnly });
     }
     else
     {
         this.ReadOnly = ReadOnly;
     }
 }
Ejemplo n.º 2
0
 public void SetReadOnly(bool ReadOnlyVal)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetReadOnly_d InvokeDelegate_d = new SetReadOnly_d(SetReadOnly);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { ReadOnlyVal });
     }
     else
     {
         readOnly              = ReadOnlyVal;
         UseSSLCB.Enabled      = !ReadOnlyVal;
         HeadersTBP.ReadOnly   = ReadOnlyVal;
         BodyTBP.ReadOnly      = ReadOnlyVal;
         FormatXmlTBP.ReadOnly = ReadOnlyVal;
         EditTBP.ReadOnly      = ReadOnly;
         SaveEditsLbl.Visible  = !ReadOnly;
         //Disable format plugins
         //Make all parameters grid value fields read-only
         foreach (DataGridViewRow Row in UrlPathPartsParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
         foreach (DataGridViewRow Row in QueryParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
         foreach (DataGridViewRow Row in BodyParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
         foreach (DataGridViewRow Row in CookieParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
         foreach (DataGridViewRow Row in HeadersParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
     }
 }
Ejemplo n.º 3
0
 public void SetReadOnly(bool ReadOnlyVal)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetReadOnly_d InvokeDelegate_d = new SetReadOnly_d(SetReadOnly);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { ReadOnlyVal });
     }
     else
     {
         this.readOnly         = ReadOnlyVal;
         HeadersTBP.ReadOnly   = ReadOnlyVal;
         BodyTBP.ReadOnly      = ReadOnlyVal;
         FormatXmlTBP.ReadOnly = ReadOnlyVal;
         EditTBP.ReadOnly      = ReadOnly;
         SaveEditsLbl.Visible  = !ReadOnly;
         //Disable format plugins
         //Make all parameters grid value fields read-only
         foreach (DataGridViewRow Row in BodyFormatPluginsParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
         ShowHideEmptyMessages();
     }
 }
Ejemplo n.º 4
0
 public void SetReadOnly(bool ReadOnly)
 {
     if (this.InvokeRequired)
     {
         SetReadOnly_d SROD = new SetReadOnly_d(SetReadOnly);
         this.Invoke(SROD, new object[] { ReadOnly });
     }
     else
     {
         this.ReadOnly = ReadOnly;
     }
 }
Ejemplo n.º 5
0
 public void SetReadOnly(bool ReadOnlyVal)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetReadOnly_d InvokeDelegate_d = new SetReadOnly_d(SetReadOnly);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { ReadOnlyVal });
     }
     else
     {
         this.readOnly = ReadOnlyVal;
         HeadersTBP.ReadOnly = ReadOnlyVal;
         BodyTBP.ReadOnly = ReadOnlyVal;
         FormatXmlTBP.ReadOnly = ReadOnlyVal;
         EditTBP.ReadOnly = ReadOnly;
         SaveEditsLbl.Visible = !ReadOnly;
         //Disable format plugins
         //Make all parameters grid value fields read-only
         foreach (DataGridViewRow Row in BodyFormatPluginsParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
     }
 }
Ejemplo n.º 6
0
 public void SetReadOnly(bool ReadOnlyVal)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetReadOnly_d InvokeDelegate_d = new SetReadOnly_d(SetReadOnly);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { ReadOnlyVal });
     }
     else
     {
         readOnly = ReadOnlyVal;
         UseSSLCB.Enabled = !ReadOnlyVal;
         HeadersTBP.ReadOnly = ReadOnlyVal;
         BodyTBP.ReadOnly = ReadOnlyVal;
         FormatXmlTBP.ReadOnly = ReadOnlyVal;
         //Disable format plugins
         //Make all parameters grid value fields read-only
         foreach (DataGridViewRow Row in UrlPathPartsParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
         foreach (DataGridViewRow Row in QueryParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
         foreach (DataGridViewRow Row in BodyNormalTypeParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
         foreach (DataGridViewRow Row in BodyFormatPluginsParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
         foreach (DataGridViewRow Row in CookieParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
         foreach (DataGridViewRow Row in HeadersParametersGrid.Rows)
         {
             Row.Cells[1].ReadOnly = this.ReadOnly;
         }
     }
 }