OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / Functions / Main.cs
index 9d2489f..5cdbf52 100644 (file)
@@ -20,12 +20,12 @@ namespace Handbrake.Functions
     static class Main\r
     {\r
         // Private Variables\r
-        private static readonly XmlSerializer ser = new XmlSerializer(typeof(List<Job>));\r
+        private static readonly XmlSerializer Ser = new XmlSerializer(typeof(List<Job>));\r
 \r
         /// <summary>\r
         /// Calculate the duration of the selected title and chapters\r
         /// </summary>\r
-        public static TimeSpan calculateDuration(int chapterStart, int chapterEnd, Parsing.Title selectedTitle)\r
+        public static TimeSpan CalculateDuration(int chapterStart, int chapterEnd, Parsing.Title selectedTitle)\r
         {\r
             TimeSpan duration = TimeSpan.FromSeconds(0.0);\r
             chapterStart++; chapterEnd++;\r
@@ -41,7 +41,7 @@ namespace Handbrake.Functions
         /// <summary>\r
         /// Select the longest title in the DVD title dropdown menu on frmMain\r
         /// </summary>\r
-        public static Parsing.Title selectLongestTitle(Parsing.DVD thisDvd)\r
+        public static Parsing.Title SelectLongestTitle(Parsing.DVD thisDvd)\r
         {\r
             TimeSpan longestDurationFound = TimeSpan.FromSeconds(0.0);\r
             Parsing.Title returnTitle = null;\r
@@ -60,7 +60,7 @@ namespace Handbrake.Functions
         /// <summary>\r
         /// Set's up the DataGridView on the Chapters tab (frmMain)\r
         /// </summary>\r
-        public static DataGridView chapterNaming(DataGridView dataChpt, string chapterEnd)\r
+        public static DataGridView ChapterNaming(DataGridView dataChpt, string chapterEnd)\r
         {\r
             int i = 0, finish = 0;\r
 \r
@@ -86,7 +86,7 @@ namespace Handbrake.Functions
         /// <param name="dataChpt"></param>\r
         /// <param name="filename"></param>\r
         /// <returns></returns>\r
-        public static DataGridView importChapterNames(DataGridView dataChpt, string filename)\r
+        public static DataGridView ImportChapterNames(DataGridView dataChpt, string filename)\r
         {\r
             IDictionary<int, string> chapterMap = new Dictionary<int, string>();\r
             try\r
@@ -124,7 +124,7 @@ namespace Handbrake.Functions
         /// Function which generates the filename and path automatically based on \r
         /// the Source Name, DVD title and DVD Chapters\r
         /// </summary>\r
-        public static string autoName(frmMain mainWindow) //ComboBox drpDvdtitle, string chapter_start, string chatper_end, string source, string dest, int format, Boolean chapters)\r
+        public static string AutoName(frmMain mainWindow) //ComboBox drpDvdtitle, string chapter_start, string chatper_end, string source, string dest, int format, Boolean chapters)\r
         {\r
             string AutoNamePath = string.Empty;\r
             if (mainWindow.drp_dvdtitle.Text != "Automatic")\r
@@ -191,7 +191,7 @@ namespace Handbrake.Functions
         /// Get's HandBrakes version data from the CLI.\r
         /// </summary>\r
         /// <returns>Arraylist of Version Data. 0 = hb_version 1 = hb_build</returns>\r
-        public static void setCliVersionData()\r
+        public static void SetCliVersionData()\r
         {\r
             String line;\r
 \r
@@ -259,7 +259,7 @@ namespace Handbrake.Functions
         /// If it does, it means the last queue did not complete before HandBrake closed.\r
         /// So, return a boolean if true. \r
         /// </summary>\r
-        public static Boolean checkQueueRecovery()\r
+        public static Boolean CheckQueueRecovery()\r
         {\r
             try\r
             {\r
@@ -268,7 +268,7 @@ namespace Handbrake.Functions
                 {\r
                     using (FileStream strm = new FileStream(tempPath, FileMode.Open, FileAccess.Read))\r
                     {\r
-                        List<Job> list = ser.Deserialize(strm) as List<Job>;\r
+                        List<Job> list = Ser.Deserialize(strm) as List<Job>;\r
                         if (list != null)\r
                             if (list.Count != 0)\r
                                 return true;\r
@@ -287,7 +287,7 @@ namespace Handbrake.Functions
         /// </summary>\r
         /// <param name="before">List of processes before the new process was started</param>\r
         /// <returns>Int - Process ID</returns>\r
-        public static int getCliProcess(Process[] before)\r
+        public static int GetCliProcess(Process[] before)\r
         {\r
             // This is a bit of a cludge. Maybe someone has a better idea on how to impliment this.\r
             // Since we used CMD to start HandBrakeCLI, we don't get the process ID from hbProc.\r
@@ -334,7 +334,7 @@ namespace Handbrake.Functions
         /// <summary>\r
         ///  Clear all the encode log files.\r
         /// </summary>\r
-        public static void clearLogs()\r
+        public static void ClearLogs()\r
         {\r
             string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";\r
             if (Directory.Exists(logDir))\r
@@ -441,7 +441,7 @@ namespace Handbrake.Functions
         /// Map languages and their iso639_2 value into a IDictionary\r
         /// </summary>\r
         /// <returns></returns>\r
-        public static IDictionary<string, string> mapLanguages()\r
+        public static IDictionary<string, string> MapLanguages()\r
         {\r
             IDictionary<string, string> languageMap = new Dictionary<string, string>\r
                                                           {\r