summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-08-04 16:00:30 +0000
committersr55 <[email protected]>2007-08-04 16:00:30 +0000
commit183781712959423ed001f539918d8567e76cecc1 (patch)
treec51e6dd2f8d88588c33e9b37b146a3ccb2e0dd53 /win/C#/frmMain.cs
parent34220f3ebb6fd879bd34316b89186013742da301 (diff)
WinGui:
- Readded a bit of code that was accidentally removed in the last commit. - Removed some old error handling code that is no longer required. - Set frmReadDVD to always display on top git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@787 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs41
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 ------------------------------------------------------------------------------
}