コード例 #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            LogHelper.WriteDebugMessage("加载运行程序");
            base.SetVisibleCore(false);//屏蔽ALT+TAB切换
            VerticalScroll.Enabled   = false;
            HorizontalScroll.Enabled = false;
            PushChildForm(new HomeScreen());
            underBar1.Moitor              = monitorEx1;
            Common.ProgressCmdKeyChanged += Common_ProgressChanged;
            Logo log = new Logo(this);

            log.Show();
        }
コード例 #2
0
 private static void Application_ApplicationExit(object sender, EventArgs e)
 {
     LogHelper.WriteDebugMessage("退出应用程序");
     ProcessCmd.ShowWindowDesk();
     //System.Diagnostics.Process.Start("shutdown.exe", "-s -t 15"); //1分钟后关机
 }