added GreenshotRadioButton

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2498 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
JKlingen 2013-02-17 13:49:35 +00:00
commit ebad49261d
3 changed files with 72 additions and 0 deletions

View file

@ -422,6 +422,12 @@ namespace GreenshotPlugin.Controls {
checkBox.Enabled = !iniValue.IsFixed;
continue;
}
RadioButton radíoButton = controlObject as RadioButton;
if (radíoButton != null) {
radíoButton.Checked = (bool)iniValue.Value;
radíoButton.Enabled = !iniValue.IsFixed;
continue;
}
TextBox textBox = controlObject as TextBox;
if (textBox != null) {
@ -449,8 +455,12 @@ namespace GreenshotPlugin.Controls {
}
}
}
OnFieldsFilled();
}
protected virtual void OnFieldsFilled() {
}
/// <summary>
/// Store all GreenshotControl values to the configuration
/// </summary>
@ -479,6 +489,12 @@ namespace GreenshotPlugin.Controls {
iniDirty = true;
continue;
}
RadioButton radioButton = controlObject as RadioButton;
if (radioButton != null) {
iniValue.Value = radioButton.Checked;
iniDirty = true;
continue;
}
TextBox textBox = controlObject as TextBox;
if (textBox != null) {
HotkeyControl hotkeyControl = controlObject as HotkeyControl;