OSDN Git Service

add win/C# diff files
[handbrake-jp/handbrake-jp.git] / win / C# / ToolWindows / TitleSpecificScan.cs.diff
diff --git a/win/C#/ToolWindows/TitleSpecificScan.cs.diff b/win/C#/ToolWindows/TitleSpecificScan.cs.diff
new file mode 100644 (file)
index 0000000..5855fd5
--- /dev/null
@@ -0,0 +1,62 @@
+diff --git a/win/C#/ToolWindows/TitleSpecificScan.cs b/win/C#/ToolWindows/TitleSpecificScan.cs
+new file mode 100644
+index 0000000..6c93834
+--- /dev/null
++++ b/win/C#/ToolWindows/TitleSpecificScan.cs
+@@ -0,0 +1,55 @@
++/*  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 TitleSpecificScan : Form\r
++    {\r
++        public TitleSpecificScan()\r
++        {\r
++            InitializeComponent();\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 title that the user entered.\r
++        /// </summary>\r
++        public int Title\r
++        {\r
++            get\r
++            {\r
++                int title;\r
++                int.TryParse(this.titleNumber.Text, out title);\r
++\r
++                return title;\r
++            }\r
++        }\r
++    }\r
++}
+\ No newline at end of file