Example #1
0
        // 重启系统
        private void btnRestartSys_Click(object sender, EventArgs e)
        {
            //DialogResult result = MessageBox.Show("确认重启", "井下终端录入系统", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
            var popup = new LoginPopup("确认重启");

            if (popup.ShowDialog() == DialogResult.OK)
            {
                SysHelper.Reboot();
            }
        }
Example #2
0
        // 关机
        private void btnCloseSys_Click(object sender, EventArgs e)
        {
            // DialogResult result = MessageBox.Show("确认关机", "井下终端录入系统", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
            var popup = new LoginPopup("确认关机");

            if (popup.ShowDialog() == DialogResult.OK)
            {
                SysHelper.DoExitWin(SysHelper.EWX_SHUTDOWN);
            }
        }