Beispiel #1
0
        public SecondScreenShowForm secondScreenShowWindow; //第二显示器显示的窗体

        public MainForm()
        {
            InitializeComponent();

            this.Check();

            //如果是xp系统,就进行谷歌浏览器初始化设置,不是xp系统则不设置
            //if (Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor == 1)
            //{
            //    //初始化谷歌浏览器的全局设置
            //    MyChromiumBrowserExtend.BrowserInit();
            //}

            //初始化谷歌浏览器的全局设置
            MyChromiumBrowserExtend.BrowserInit();


            #region 分屏显示设置
            if (Screen.AllScreens.Length > 1)
            {
                secondScreenShowWindow = new SecondScreenShowForm();
                showOnMonitor(secondScreenShowWindow, 1);
            }
            #endregion

            this.Load        += MainForm_Load;
            this.FormClosing += MainForm_FormClosing;

            //Windows 7 不使用任务栏的退出程序功能
            if (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor == 1)
            {
                this.退出系统ToolStripMenuItem.Visible = false;
            }
        }
Beispiel #2
0
        public SecondScreenShowForm secondScreenShowWindow; //第二显示器显示的窗体

        public MainForm()
        {
            InitializeComponent();

            this.Check();

            //初始化谷歌浏览器的全局设置
            MyChromiumBrowserExtend.BrowserInit();


            #region 分屏显示设置
            if (Screen.AllScreens.Length > 1)
            {
                secondScreenShowWindow = new SecondScreenShowForm();
                showOnMonitor(secondScreenShowWindow, 1);
            }
            #endregion

            this.Load        += MainForm_Load;
            this.FormClosing += MainForm_FormClosing;
        }