Esempio n. 1
0
 void SetBody(Request Req)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetBody_d InvokeDelegate_d = new SetBody_d(SetBody);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Req });
     }
     else
     {
         if (Req.HasBody)
         {
             if (Req.IsBinary)
             {
                 this.BodyTBP.SetBytes(Req.BodyArray);
             }
             else
             {
                 this.BodyTBP.SetText(Req.BodyString);
             }
         }
         this.ResetBodyChangedStatus();
     }
 }
Esempio n. 2
0
 void SetBody(Response Res)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         SetBody_d InvokeDelegate_d = new SetBody_d(SetBody);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Res });
     }
     else
     {
         if (Res.HasBody)
         {
             if (Res.IsBinary)
                 this.BodyTBP.SetBytes(Res.BodyArray);
             else
                 this.BodyTBP.SetText(Res.BodyString);
         }
         this.ResetBodyChangedStatus();
     }
 }