summaryrefslogtreecommitdiffstats
path: root/win/C#/frmOptions.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-07-04 15:38:29 +0000
committersr55 <[email protected]>2009-07-04 15:38:29 +0000
commit499dbe37cfa932362827622bb04132ecd2371f96 (patch)
tree1f9fe45a71de54c8b8b6b0b77af4d9473ec3ee17 /win/C#/frmOptions.cs
parent2a0df5e5ee4c084082487d2e3d717860ee705738 (diff)
WinGui:
- Change update check period to a dropdown with Daily, Weekly, and Monthly. Replaces numeric updown control. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2663 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmOptions.cs')
-rw-r--r--win/C#/frmOptions.cs30
1 files changed, 27 insertions, 3 deletions
diff --git a/win/C#/frmOptions.cs b/win/C#/frmOptions.cs
index d6c9489c6..606d9d773 100644
--- a/win/C#/frmOptions.cs
+++ b/win/C#/frmOptions.cs
@@ -121,7 +121,18 @@ namespace Handbrake
check_inGuiStatus.CheckState = CheckState.Checked;
// Days between update checks
- numeric_updateCheckDays.Value = Properties.Settings.Default.daysBetweenUpdateCheck;
+ switch (Properties.Settings.Default.daysBetweenUpdateCheck)
+ {
+ case 1:
+ drop_updateCheckDays.SelectedIndex = 0;
+ break;
+ case 7:
+ drop_updateCheckDays.SelectedIndex = 1;
+ break;
+ case 30:
+ drop_updateCheckDays.SelectedIndex = 2;
+ break;
+ }
// x264 step
CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
@@ -295,9 +306,20 @@ namespace Handbrake
Properties.Settings.Default.enocdeStatusInGui = check_inGuiStatus.Checked;
}
- private void numeric_updateCheckDays_ValueChanged(object sender, EventArgs e)
+ private void drop_updateCheckDays_SelectedIndexChanged(object sender, EventArgs e)
{
- Properties.Settings.Default.daysBetweenUpdateCheck = (int)numeric_updateCheckDays.Value;
+ switch (drop_updateCheckDays.SelectedIndex)
+ {
+ case 0:
+ Properties.Settings.Default.daysBetweenUpdateCheck = 1;
+ break;
+ case 1:
+ Properties.Settings.Default.daysBetweenUpdateCheck = 7;
+ break;
+ case 2:
+ Properties.Settings.Default.daysBetweenUpdateCheck = 30;
+ break;
+ }
}
private void x264step_SelectedIndexChanged(object sender, EventArgs e)
@@ -331,5 +353,7 @@ namespace Handbrake
this.Close();
}
+
+
}
} \ No newline at end of file