OSDN Git Service

add win/C# diff files
[handbrake-jp/handbrake-jp.git] / win / C# / ToolWindows / BatchAdd.cs.diff
1 diff --git a/win/C#/ToolWindows/BatchAdd.cs b/win/C#/ToolWindows/BatchAdd.cs
2 new file mode 100644
3 index 0000000..08bf620
4 --- /dev/null
5 +++ b/win/C#/ToolWindows/BatchAdd.cs
6 @@ -0,0 +1,73 @@
7 +/*  TitleSpecificScan.cs $\r
8 +    This file is part of the HandBrake source code.\r
9 +    Homepage: <http://handbrake.fr>.\r
10 +    It may be used under the terms of the GNU General Public License. */\r
11 +\r
12 +namespace Handbrake.ToolWindows\r
13 +{\r
14 +    using System;\r
15 +    using System.Windows.Forms;\r
16 +\r
17 +    /// <summary>\r
18 +    /// Title Specific Scan\r
19 +    /// </summary>\r
20 +    public partial class BatchAdd : Form\r
21 +    {\r
22 +        public BatchAdd()\r
23 +        {\r
24 +            InitializeComponent();\r
25 +\r
26 +            // Get the Default values for batch encoding.\r
27 +            this.minDuration.Text = Properties.Settings.Default.batchMinDuration.ToString();\r
28 +            this.maxDuration.Text = Properties.Settings.Default.batchMaxDuration.ToString();\r
29 +        }\r
30 +\r
31 +        /// <summary>\r
32 +        /// Button Cancel Click Event Handler\r
33 +        /// </summary>\r
34 +        /// <param name="sender">The Sender</param>\r
35 +        /// <param name="e">The EventArgs</param>\r
36 +        private void BtnCancelClick(object sender, EventArgs e)\r
37 +        {\r
38 +            this.DialogResult = DialogResult.Cancel;\r
39 +        }\r
40 +\r
41 +        /// <summary>\r
42 +        /// Button Scan Click Event Handler\r
43 +        /// </summary>\r
44 +        /// <param name="sender">The Sender</param>\r
45 +        /// <param name="e">The EventArgs</param>\r
46 +        private void BtnScanClick(object sender, EventArgs e)\r
47 +        {\r
48 +            this.DialogResult = DialogResult.OK;\r
49 +        }\r
50 +\r
51 +        /// <summary>\r
52 +        /// Gets the minimum duration that the user entered.\r
53 +        /// </summary>\r
54 +        public int Min\r
55 +        {\r
56 +            get\r
57 +            {\r
58 +                int title;\r
59 +                int.TryParse(this.minDuration.Text, out title);\r
60 +\r
61 +                return title;\r
62 +            }\r
63 +        }\r
64 +\r
65 +        /// <summary>\r
66 +        /// Gets the maximum duration that the user entered.\r
67 +        /// </summary>\r
68 +        public int Max\r
69 +        {\r
70 +            get\r
71 +            {\r
72 +                int title;\r
73 +                int.TryParse(this.maxDuration.Text, out title);\r
74 +\r
75 +                return title;\r
76 +            }\r
77 +        }\r
78 +    }\r
79 +}
80 \ No newline at end of file