示例#1
0
文件: Main.cs 项目: ExoKalork/EHWVB
        private void Main_Shown(object sender, EventArgs e)
        {
            LBL_Status.Text = "Loading...";

            ((Control)WB_Main).Enabled = false;
            if (Array.Exists(Environment.GetCommandLineArgs(), arg => arg == "/minimized"))
            {
                WindowState = FormWindowState.Minimized;
            }

            if (Array.Exists(Environment.GetCommandLineArgs(), arg => arg == "/WaitForInternet"))
            {
                if (!CheckInternetConnection(true))
                {
                    TM_WaitForInternet.Start();
                }
                else
                {
                    CheckForNewVersion();
                    ConnectCheck();
                }
            }
            else
            {
                if (CheckInternetConnection())
                {
                    CheckForNewVersion();
                    ConnectCheck();
                }
            }
        }
示例#2
0
文件: Main.cs 项目: ExoKalork/EHWVB
 private void TM_WaitForInternet_Tick(object sender, EventArgs e)
 {
     TM_WaitForInternet.Stop();
     if (CheckInternetConnection(true))
     {
         CheckForNewVersion();
         ConnectCheck();
     }
     else
     {
         TM_WaitForInternet.Start();
     }
 }