Exemple #1
0
 public void ShowStringEx(string strInfo)
 {
     try
     {
         if (listBox1.InvokeRequired)
         {
             ShowEventLog _myInvoke = new ShowEventLog(ShowString);
             this.Invoke(_myInvoke, new object[] { strInfo });
         }
         else
         {
             ShowString(strInfo);
         }
     }
     catch (Exception e)
     {
         string strError = e.Message;
     }
 }
Exemple #2
0
 public void ShowLeftPageInfo(string strInfo)
 {
     try
     {
         if (label_left_page.InvokeRequired)
         {
             ShowEventLog _myInvoke = new ShowEventLog(AddPageNotice);
             this.Invoke(_myInvoke, new object[] { strInfo });
         }
         else
         {
             AddPageNotice(strInfo);
         }
     }
     catch (Exception e)
     {
         string strError = e.Message;
     }
 }
Exemple #3
0
 public void ResetButton(string strInfo)
 {
     try
     {
         if (btnStartFresh.InvokeRequired)
         {
             ShowEventLog _myInvoke = new ShowEventLog(ResetButtonEx);
             this.Invoke(_myInvoke, new object[] { strInfo });
         }
         else
         {
             ResetButtonEx(strInfo);
         }
     }
     catch (Exception e)
     {
         string strError = e.Message;
     }
 }
 public void ShowLogString(string strInfo)
 {
     try
     {
         if (listView.InvokeRequired)
         {
             ShowEventLog _myInvoke = new ShowEventLog(ShowLog);
             this.Invoke(_myInvoke, new object[] { strInfo });
         }
         else
         {
             ShowLog(strInfo);
         }
     }
     catch (Exception e)
     {
         string strError = e.Message;
     }
 }
        public void ResetButton(string strInfo)
        {
            if (btnStartFresh.InvokeRequired)
            {
                ShowEventLog _myInvoke = new ShowEventLog(ResetButtonEx);
                this.Invoke(_myInvoke, new object[] { "start" });
            }
            else
            {
                ResetButtonEx(btnStartFresh);
            }

            if (btnStopFresh.InvokeRequired)
            {
                ShowEventLog _myInvoke = new ShowEventLog(ResetButtonEx);
                this.Invoke(_myInvoke, new object[] { "stop" });
            }
            else
            {
                ResetButtonEx(btnStopFresh);
            }

            if (checkFresh.InvokeRequired)
            {
                ShowEventLog _myInvoke = new ShowEventLog(ResetButtonEx);
                this.Invoke(_myInvoke, new object[] { "check" });
            }
            else
            {
                ResetButtonEx(checkFresh);
            }

            if (btnImportAcc.InvokeRequired)
            {
                ShowEventLog _myInvoke = new ShowEventLog(ResetButtonEx);
                this.Invoke(_myInvoke, new object[] { "import" });
            }
            else
            {
                ResetButtonEx(btnImportAcc);
            }
        }
 public void ShowLeftPageInfoEx(string strInfo)
 {
     try
     {
         if (label_left_page_ex.InvokeRequired)
         {
             ShowEventLog _myInvoke = new ShowEventLog(AddPageNoticeEx);
             this.Invoke(_myInvoke, new object[] { strInfo });
         }
         else
         {
             AddPageNoticeEx(strInfo);
         }
     }
     catch (Exception e)
     {
         string strError = e.Message;
     }
 }
 public void ResetButton(string strInfo)
 {
     try
     {
         if (btnStartFresh.InvokeRequired)
         {
             ShowEventLog _myInvoke = new ShowEventLog(ResetButtonEx);
             this.Invoke(_myInvoke, new object[] { strInfo });
         }
         else
         {
             ResetButtonEx(strInfo);
         }
     }
     catch (Exception e)
     {
         string strError = e.Message;
     }
 }