Exemplo n.º 1
0
 private void ShowMes(string mes)
 {
     if (!isOnLoad)
     {
         return;
     }
     if (myFreeHttpWindow.InvokeRequired)
     {
         myFreeHttpWindow.BeginInvoke(new Action <string>(myFreeHttpWindow.PutInfo), mes);
     }
     else
     {
         myFreeHttpWindow.PutInfo(mes);
     }
 }
Exemplo n.º 2
0
 private void ShowMes(string mes)
 {
     if (!isOnLoad)
     {
         return;
     }
     if (myFreeHttpWindow.InvokeRequired)
     {
         //BeginInvoke,Invoke will execute in the contol ui thread, but Invoke will with the end in the ui thread
         //myFreeHttpWindow.Invoke(new Action(()=>{System.Threading.Thread.Sleep(10000);}) );
         myFreeHttpWindow.BeginInvoke(new Action <string>(myFreeHttpWindow.PutInfo), mes);
     }
     else
     {
         myFreeHttpWindow.PutInfo(mes);
     }
 }
Exemplo n.º 3
0
 private void ShowMes(string mes, bool isReport = false)
 {
     if (!isOnLoad)
     {
         return;
     }
     if (isReport)
     {
         _ = RemoteLogService.ReportLogAsync(mes, RemoteLogService.RemoteLogOperation.SessionTamp, RemoteLogService.RemoteLogType.Info);
     }
     if (myFreeHttpWindow.InvokeRequired)
     {
         //BeginInvoke,Invoke will execute in the contol ui thread, but Invoke will with the end in the ui thread
         //myFreeHttpWindow.Invoke(new Action(()=>{System.Threading.Thread.Sleep(10000);}) );
         myFreeHttpWindow.BeginInvoke(new Action <string>(myFreeHttpWindow.PutInfo), mes);
     }
     else
     {
         myFreeHttpWindow.PutInfo(mes);
     }
 }