summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-11-13 19:38:28 +0000
committersr55 <[email protected]>2007-11-13 19:38:28 +0000
commitd2f6a79b08bdea9f87ee806d99f22b92cb8761a5 (patch)
tree05d77e858ea8ee1b5b0729c95bf0d5be9dab6078 /win/C#/frmMain.cs
parentaddd8819bde47cfa732e33333e989e41f9206a1d (diff)
WinGui:
- Copy to clipboard button on the dvd information window. - Show / hide presets button removed and replaced with an item in the presets menu. - Re-enabled the update status text. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1057 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs53
1 files changed, 22 insertions, 31 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 12d7a5d4d..d9c138787 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -116,7 +116,7 @@ namespace Handbrake
private void splashTimer(object sender)
{
- Thread.Sleep(2000); //sit for 2 seconds then exit
+ Thread.Sleep(1000); //sit for 1 seconds then exit
}
private void showSplash(object sender)
@@ -134,7 +134,7 @@ namespace Handbrake
if (item != null)
{
- listview_presets.SelectedItems.Clear();
+ //listview_presets.SelectedItems.Clear();
item.Selected = true;
}
}
@@ -178,7 +178,7 @@ namespace Handbrake
Boolean update = ((verdata > vergui) || (verd1 > cliversion));
- //lbl_update.Visible = update;
+ lbl_update.Visible = update;
return update;
}
@@ -206,7 +206,7 @@ namespace Handbrake
{
if (Properties.Settings.Default.hidePresets == "Checked")
{
- btn_presets.Visible = true;
+ mnu_showPresets.Visible = true;
this.Width = 591;
}
@@ -313,6 +313,23 @@ namespace Handbrake
#endregion
#region Presets Menu
+ Boolean presetStatus;
+
+ private void mnu_showPresets_Click(object sender, EventArgs e)
+ {
+ if (presetStatus == false)
+ {
+ this.Width = 881;
+ presetStatus = true;
+ mnu_showPresets.Text = "Hide Presets";
+ }
+ else
+ {
+ this.Width = 590;
+ presetStatus = false;
+ mnu_showPresets.Text = "Show Presets";
+ }
+ }
private void mnu_presetReset_Click(object sender, EventArgs e)
{
@@ -330,13 +347,6 @@ namespace Handbrake
listview_presets.SelectedItems.Clear();
item.Selected = true;
}
-
- if (presetStatus == false)
- {
- this.Width = 881;
- presetStatus = true;
- btn_presets.Text = "Hide Presets";
- }
}
#endregion
@@ -563,27 +573,7 @@ namespace Handbrake
}
- // Varibles
- private Boolean presetStatus = false;
-
// Buttons
- private void btn_presets_Click(object sender, EventArgs e)
- {
- if (presetStatus == false)
- {
- this.Width = 881;
- presetStatus = true;
- btn_presets.Text = "Hide Presets";
- }
- else
- {
- this.Width = 590;
- presetStatus = false;
- btn_presets.Text = "Show Presets";
- }
-
- }
-
private void btn_setDefault_Click(object sender, EventArgs e)
{
String query = GenerateTheQuery();
@@ -648,6 +638,7 @@ namespace Handbrake
}
+
#endregion
//---------------------------------------------------