コード例 #1
0
        private void btnStopClick_Click(object sender, EventArgs e)
        {
            this.InvokeOnUiThreadIfRequired(() =>
            {
                CommonParameter.CurrentScreenResolutionIndex = 0;
                ScreenResolution.ChangeResolution(CommonParameter.CurrentScreenResolutionValue.Width, CommonParameter.CurrentScreenResolutionValue.Height, 0);

                btnBeginClick.Enabled = true;
                btnStopClick.Enabled  = false;
                this.uc_browser_tabs.main_browser.StopClick();
            });
        }
コード例 #2
0
        private void _excuteClickEnd(object sender, EventArgs args)
        {
            DialogResult dr = MessageBox.Show("执行完成!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);

            if (dr == DialogResult.OK)
            {
                // 还原最大的分辨率
                CommonParameter.CurrentScreenResolutionIndex = 0;
                //this.InvokeOnUiThreadIfRequired(() => this.comboxResolutions.SelectedIndex = CommonParameter.CurrentScreenResolutionIndex);
                ScreenResolution.ChangeResolution(CommonParameter.CurrentScreenResolutionValue.Width, CommonParameter.CurrentScreenResolutionValue.Height, 0);
                btnStopClick_Click(null, null);
            }
        }