diff options
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index a46eb5892..9e7643a30 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -660,6 +660,45 @@ namespace Handbrake // --------------------------------------------------------------
#region Buttons
+ private void btn_Browse_Click(object sender, EventArgs e)
+ {
+ String filename ="";
+ text_source.Text = "";
+
+ if (RadioDVD.Checked)
+ {
+ DVD_Open.ShowDialog();
+ filename = DVD_Open.SelectedPath;
+ if (filename != "")
+ {
+ Form frmRD = new frmReadDVD(filename, this, dvdInfoWindow);
+ text_source.Text = filename;
+ frmRD.ShowDialog();
+ }
+ }
+ else
+ {
+ ISO_Open.ShowDialog();
+ filename = ISO_Open.FileName;
+ if (filename != "")
+ {
+ Form frmRD = new frmReadDVD(filename, this, dvdInfoWindow);
+ text_source.Text = filename;
+ frmRD.ShowDialog();
+ }
+ }
+
+ // Check if there was titles in the dvd title dropdown
+ if (filename == "")
+ {
+ text_source.Text = "Click 'Browse' to continue";
+ }
+
+ if (drp_dvdtitle.Items.Count == 0)
+ {
+ MessageBox.Show("No Title(s) found. Please make sure you have selected a valid, non-copy protected source. Please refer to the FAQ (see Help Menu).", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
+ }
+ }
private void btn_destBrowse_Click(object sender, EventArgs e)
{
@@ -1577,6 +1616,8 @@ namespace Handbrake #endregion
+
+
// This is the END of the road ------------------------------------------------------------------------------
}
|