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
6 namespace Handbrake.ToolWindows
\r
9 using System.Windows.Forms;
\r
12 /// Title Specific Scan
\r
14 public partial class BatchAdd : Form
\r
18 InitializeComponent();
\r
20 // Get the Default values for batch encoding.
\r
21 this.minDuration.Text = Properties.Settings.Default.batchMinDuration.ToString();
\r
22 this.maxDuration.Text = Properties.Settings.Default.batchMaxDuration.ToString();
\r
26 /// Button Cancel Click Event Handler
\r
28 /// <param name="sender">The Sender</param>
\r
29 /// <param name="e">The EventArgs</param>
\r
30 private void BtnCancelClick(object sender, EventArgs e)
\r
32 this.DialogResult = DialogResult.Cancel;
\r
36 /// Button Scan Click Event Handler
\r
38 /// <param name="sender">The Sender</param>
\r
39 /// <param name="e">The EventArgs</param>
\r
40 private void BtnScanClick(object sender, EventArgs e)
\r
42 this.DialogResult = DialogResult.OK;
\r
46 /// Gets the minimum duration that the user entered.
\r
53 int.TryParse(this.minDuration.Text, out title);
\r
60 /// Gets the maximum duration that the user entered.
\r
67 int.TryParse(this.maxDuration.Text, out title);
\r