Пример #1
0
 void SetCookieParameters(Request Req)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetCookieParameters_d InvokeDelegate_d = new SetCookieParameters_d(SetCookieParameters);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Req });
     }
     else
     {
         CookieParametersGrid.Rows.Clear();
         foreach (string Name in Req.Cookie.GetNames())
         {
             foreach (string Value in Req.Cookie.GetAll(Name))
             {
                 int RowId = CookieParametersGrid.Rows.Add(new object[] { Name, Value, Properties.Resources.Glass });
                 CookieParametersGrid.Rows[RowId].Cells[1].ReadOnly = this.ReadOnly;
             }
         }
         this.ResetCookieParametersChangedStatus();
     }
 }
Пример #2
0
 void SetCookieParameters(Request Req)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetCookieParameters_d InvokeDelegate_d = new SetCookieParameters_d(SetCookieParameters);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Req });
     }
     else
     {
         CookieParametersGrid.Rows.Clear();
         foreach (string Name in Req.Cookie.GetNames())
         {
             foreach (string Value in Req.Cookie.GetAll(Name))
             {
                 int RowId = CookieParametersGrid.Rows.Add(new object[] { Name, Value, Properties.Resources.Glass });
                 CookieParametersGrid.Rows[RowId].Cells[1].ReadOnly = this.ReadOnly;
             }
         }
         this.ResetCookieParametersChangedStatus();
     }
 }