Ejemplo n.º 1
0
 public void FreshProc()
 {
     while (true)
     {
         if (m_iExit)
         {
             break;
         }
         try
         {
             if (m_webBrowser.InvokeRequired)
             {
                 OnCalQuestionEvent _myInvoke = new OnCalQuestionEvent(Fresh);
                 this.Invoke(_myInvoke, new object[] { });
             }
             else
             {
                 Fresh();
             }
         }
         catch (Exception e)
         {
             string strError = e.Message;
         }
         int iCount = 0;
         while (!m_iExit && iCount++ < 10)
         {
             Thread.Sleep(600);
         }
     }
 }
Ejemplo n.º 2
0
 public void FreshProc()
 {
     while (true)
     {
         if (m_iExit)
         {
             break;
         }
         try
         {
             if (m_webBrowser.InvokeRequired)
             {
                 OnCalQuestionEvent _myInvoke = new OnCalQuestionEvent(Fresh);
                 this.Invoke(_myInvoke, new object[] { });
             }
             else
             {
                 Fresh();
             }
         }
         catch (Exception e)
         {
             string strError = e.Message;
         }
         int iCount = 0;
         while(!m_iExit && iCount++ < 10)
         {
             Thread.Sleep(600);
         }
     }
 }