OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / TitleSpecificScan.cs
1 /*  TitleSpecificScan.cs $\r
2     This file is part of the HandBrake source code.\r
3     Homepage: <http://handbrake.fr>.\r
4     It may be used under the terms of the GNU General Public License. */\r
5 \r
6 namespace Handbrake\r
7 {\r
8     using System;\r
9     using System.Windows.Forms;\r
10 \r
11     /// <summary>\r
12     /// Title Specific Scan\r
13     /// </summary>\r
14     public partial class TitleSpecificScan : Form\r
15     {\r
16         public TitleSpecificScan()\r
17         {\r
18             InitializeComponent();\r
19         }\r
20 \r
21         /// <summary>\r
22         /// Button Cancel Click Event Handler\r
23         /// </summary>\r
24         /// <param name="sender">The Sender</param>\r
25         /// <param name="e">The EventArgs</param>\r
26         private void BtnCancelClick(object sender, EventArgs e)\r
27         {\r
28             this.Close();\r
29         }\r
30 \r
31         /// <summary>\r
32         /// Button Scan 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 BtnScanClick(object sender, EventArgs e)\r
37         {\r
38             this.DialogResult = DialogResult.OK;\r
39         }\r
40 \r
41         /// <summary>\r
42         /// Gets the title that the user entered.\r
43         /// </summary>\r
44         public int Title\r
45         {\r
46             get\r
47             {\r
48                 int title;\r
49                 int.TryParse(this.titleNumber.Text, out title);\r
50 \r
51                 return title;\r
52             }\r
53         }\r
54     }\r
55 }