/* TitleSpecificScan.cs $ This file is part of the HandBrake source code. Homepage: . It may be used under the terms of the GNU General Public License. */ namespace Handbrake.ToolWindows { using System; using System.Windows.Forms; /// /// Title Specific Scan /// public partial class BatchAdd : Form { public BatchAdd() { InitializeComponent(); // Get the Default values for batch encoding. this.minDuration.Text = Properties.Settings.Default.batchMinDuration.ToString(); this.maxDuration.Text = Properties.Settings.Default.batchMaxDuration.ToString(); } /// /// Button Cancel Click Event Handler /// /// The Sender /// The EventArgs private void BtnCancelClick(object sender, EventArgs e) { this.DialogResult = DialogResult.Cancel; } /// /// Button Scan Click Event Handler /// /// The Sender /// The EventArgs private void BtnScanClick(object sender, EventArgs e) { this.DialogResult = DialogResult.OK; } /// /// Gets the minimum duration that the user entered. /// public int Min { get { int title; int.TryParse(this.minDuration.Text, out title); return title; } } /// /// Gets the maximum duration that the user entered. /// public int Max { get { int title; int.TryParse(this.maxDuration.Text, out title); return title; } } } }