3 This file is part of the HandBrake source code.
\r
4 Homepage: <http://handbrake.fr>.
\r
5 It may be used under the terms of the GNU General Public License. */
\r
8 using System.Windows.Forms;
\r
12 static class Program
\r
15 /// The main entry point for the application.
\r
20 // Check the system meets the system requirements.
\r
21 Boolean launch = true;
\r
24 // Make sure the screen resolution is not below 1024x768
\r
25 Screen scr = Screen.PrimaryScreen;
\r
26 if ((scr.Bounds.Width < 1024) || (scr.Bounds.Height < 720))
\r
28 MessageBox.Show("Your system does not meet the minimum requirements for HandBrake. \n" + "Your screen is running at: " + scr.Bounds.Width + "x" + scr.Bounds.Height + " \nScreen resolution is too Low. Must be 1024x720 or greater", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
\r
32 catch (Exception exc)
\r
34 MessageBox.Show("frmMain.cs - systemCheck() " + exc);
\r
37 // Either Launch or Close the Application
\r
40 Application.EnableVisualStyles();
\r
41 Application.SetCompatibleTextRenderingDefault(false);
\r
42 Application.Run(new frmMain());
\r