OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / Program.cs
index 64ef81b..805d339 100644 (file)
@@ -1,27 +1,29 @@
-/*  Program.cs \r
-       \r
-          This file is part of the HandBrake source code.\r
-          Homepage: <http://handbrake.fr>.\r
-          It may be used under the terms of the GNU General Public License. */\r
-\r
-using System;\r
-using System.Windows.Forms;\r
-using System.IO;\r
-using Handbrake.Presets;\r
+/*  Program.cs\r
+    This file is part of the HandBrake source code.\r
+    Homepage: <http://handbrake.fr>.\r
+    It may be used under the terms of the GNU General Public License. */\r
 \r
 namespace Handbrake\r
 {\r
-    static class Program\r
+    using System;\r
+    using System.IO;\r
+    using System.Windows.Forms;\r
+    using Presets;\r
+\r
+    /// <summary>\r
+    /// HandBrake Starts Here\r
+    /// </summary>\r
+    public static class Program\r
     {\r
         /// <summary>\r
         /// The main entry point for the application.\r
         /// </summary>\r
         [STAThread]\r
-        static void Main()\r
+        public static void Main()\r
         {\r
             Screen scr = Screen.PrimaryScreen;\r
             if ((scr.Bounds.Width < 1024) || (scr.Bounds.Height < 620))\r
-                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
+                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 1024x620 or greater", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
             else\r
             {\r
                 string logDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"HandBrake\logs");\r
@@ -31,7 +33,7 @@ namespace Handbrake
                 if (!File.Exists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"HandBrake\presets.xml")))\r
                 {\r
                     PresetsHandler x = new PresetsHandler();\r
-                    x.updateBuiltInPresets();\r
+                    x.UpdateBuiltInPresets();\r
                 }\r
 \r
                 Application.EnableVisualStyles();\r
@@ -40,5 +42,4 @@ namespace Handbrake
             }\r
         }\r
     }\r
-\r
 }
\ No newline at end of file