OSDN Git Service

import original 0.9.5 release
[handbrake-jp/handbrake-jp.git] / win / C# / ToolWindows / BatchAdd.cs
diff --git a/win/C#/ToolWindows/BatchAdd.cs b/win/C#/ToolWindows/BatchAdd.cs
new file mode 100644 (file)
index 0000000..08bf620
--- /dev/null
@@ -0,0 +1,73 @@
+/*  TitleSpecificScan.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.ToolWindows\r
+{\r
+    using System;\r
+    using System.Windows.Forms;\r
+\r
+    /// <summary>\r
+    /// Title Specific Scan\r
+    /// </summary>\r
+    public partial class BatchAdd : Form\r
+    {\r
+        public BatchAdd()\r
+        {\r
+            InitializeComponent();\r
+\r
+            // Get the Default values for batch encoding.\r
+            this.minDuration.Text = Properties.Settings.Default.batchMinDuration.ToString();\r
+            this.maxDuration.Text = Properties.Settings.Default.batchMaxDuration.ToString();\r
+        }\r
+\r
+        /// <summary>\r
+        /// Button Cancel Click Event Handler\r
+        /// </summary>\r
+        /// <param name="sender">The Sender</param>\r
+        /// <param name="e">The EventArgs</param>\r
+        private void BtnCancelClick(object sender, EventArgs e)\r
+        {\r
+            this.DialogResult = DialogResult.Cancel;\r
+        }\r
+\r
+        /// <summary>\r
+        /// Button Scan Click Event Handler\r
+        /// </summary>\r
+        /// <param name="sender">The Sender</param>\r
+        /// <param name="e">The EventArgs</param>\r
+        private void BtnScanClick(object sender, EventArgs e)\r
+        {\r
+            this.DialogResult = DialogResult.OK;\r
+        }\r
+\r
+        /// <summary>\r
+        /// Gets the minimum duration that the user entered.\r
+        /// </summary>\r
+        public int Min\r
+        {\r
+            get\r
+            {\r
+                int title;\r
+                int.TryParse(this.minDuration.Text, out title);\r
+\r
+                return title;\r
+            }\r
+        }\r
+\r
+        /// <summary>\r
+        /// Gets the maximum duration that the user entered.\r
+        /// </summary>\r
+        public int Max\r
+        {\r
+            get\r
+            {\r
+                int title;\r
+                int.TryParse(this.maxDuration.Text, out title);\r
+\r
+                return title;\r
+            }\r
+        }\r
+    }\r
+}
\ No newline at end of file