OSDN Git Service

CLI: update the built in presets
[handbrake-jp/handbrake-jp-git.git] / win / C# / ToolWindows / PreviewOverlay.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.ToolWindows\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 PreviewOverlay : Form\r
15     {\r
16         public PreviewOverlay()\r
17         {\r
18             InitializeComponent();\r
19         }\r
20 \r
21         /// <summary>\r
22         /// Gets the preview frame that the user entered.\r
23         /// </summary>\r
24         public int Preview\r
25         {\r
26             get\r
27             {\r
28                 int value;\r
29                 int.TryParse(drp_preview.SelectedItem.ToString(), out value);\r
30 \r
31                 return value;\r
32             }\r
33         }\r
34 \r
35         /// <summary>\r
36         /// Gets the duration that the user entered.\r
37         /// </summary>\r
38         public int Duration\r
39         {\r
40             get\r
41             {\r
42                 int value;\r
43                 int.TryParse(drp_preview.SelectedItem.ToString(), out value);\r
44 \r
45                 return value;\r
46             }\r
47         }\r
48 \r
49         /// <summary>\r
50         /// Play the video with Quicktime\r
51         /// </summary>\r
52         /// <param name="sender">The Sender</param>\r
53         /// <param name="e">The EventArgs</param>\r
54         private void PlayWithQtClick(object sender, EventArgs e)\r
55         {\r
56             this.DialogResult = DialogResult.OK;\r
57         }\r
58     }\r
59 }