diff options
author | sr55 <[email protected]> | 2007-07-15 21:52:57 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-07-15 21:52:57 +0000 |
commit | 29036b449c87ca64e425e405fe81c450a65a081e (patch) | |
tree | 8d044a2609858ae2ea26ebf13bde3069d6205a26 /win/C#/frmMain.cs | |
parent | e8c438e0573761f14af481d07615072babf94951 (diff) |
WinGui:
- Fixed Queue bug where it selecting the wrong item.
- changed Invalid chapter messagebox to onscreen text alert. (less irritating)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@692 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 825a64d50..c3ccc3ec9 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -141,7 +141,6 @@ namespace Handbrake }
#region The Menu Bar
-
#region File Menu
private void mnu_open_Click(object sender, EventArgs e)
@@ -499,7 +498,6 @@ namespace Handbrake }
#endregion
-
#endregion
// --------------------------------------------------------------
@@ -655,6 +653,7 @@ namespace Handbrake private void drop_chapterStart_SelectedIndexChanged(object sender, EventArgs e)
{
+ lbl_chptWarn.Visible = false;
QueryEditorText.Text = "";
if ((drop_chapterFinish.Text != "Auto") && (drop_chapterStart.Text != "Auto"))
{
@@ -665,12 +664,14 @@ namespace Handbrake if (chapterFinish < chapterStart)
{
- MessageBox.Show("Invalid Chapter Range! - Final chapter can not be smaller than the starting chapter.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ lbl_chptWarn.Visible = true;
+ lbl_chptWarn.Text = "Invalid Chapter Range!";
}
}
catch (Exception)
{
- MessageBox.Show("Invalid Character Entered!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
+ lbl_chptWarn.Visible = true;
+ lbl_chptWarn.Text = "Invalid Chapter Range!";
}
}
@@ -679,6 +680,7 @@ namespace Handbrake private void drop_chapterFinish_SelectedIndexChanged(object sender, EventArgs e)
{
+ lbl_chptWarn.Visible = false;
QueryEditorText.Text = "";
if ((drop_chapterFinish.Text != "Auto") && (drop_chapterStart.Text != "Auto"))
{
@@ -689,12 +691,14 @@ namespace Handbrake if (chapterFinish < chapterStart)
{
- MessageBox.Show("Invalid Chapter Range! - Start chapter can not be larger than the Final chapter.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ lbl_chptWarn.Visible = true;
+ lbl_chptWarn.Text = "Invalid Chapter Range!";
}
}
catch (Exception)
{
- MessageBox.Show("Invalid Character Entered!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
+ lbl_chptWarn.Visible = true;
+ lbl_chptWarn.Text = "Invalid Chapter Range!";
}
}
}
@@ -1022,12 +1026,10 @@ namespace Handbrake }
}
- /// <summary>
- /// The Query Generation Function
- /// This function was imported from old vb.net version of this application.
- /// It could probably do with being cleaned up a good deal at some point
- /// </summary>
- /// <returns></returns>
+ // The Query Generation Function
+ // This function was imported from old vb.net version of this application.
+ // It could probably do with being cleaned up a good deal at some point
+
public string GenerateTheQuery()
{
string source = text_source.Text;
|