Esempio n. 1
0
 private void Timer_Conut_Tick(object sender, EventArgs e)
 {
     Timer_Conut.Stop();
     if (GeneralCommon.GF_DbConnect() == true)
     {
         ExeMain();
     }
     else
     {
         GeneralCommon.Gp_MsgBoxDisplay("网络连接异常,进入检测程序", "W", "DataBase Connection");
         Chk_Net();
         this.Dispose();
     }
 }
Esempio n. 2
0
        private void DownLoadMain_Load(object sender, System.EventArgs e)
        {
            try
            {
                GeneralCommon.Gp_LogTxt("DownLoad DownLoadMain_Load 00");
                sExePath        = System.IO.Directory.GetCurrentDirectory() + "\\";
                this.KeyPreview = true;
                GeneralCommon.Gp_FormCenter(this);

                // Sets the timer interval to 5 seconds.
                Timer_Conut.Interval = 1000;
                Timer_Conut.Start();
            }
            catch (Exception ex)
            {
                GeneralCommon.Gp_LogData("DownLoadMain_Load " + ex.Message);
            }
        }