Made ini-binding for the form

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1784 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-04-17 14:42:41 +00:00
parent 53af559d22
commit 72b3f774ce
4 changed files with 46 additions and 11 deletions

View file

@ -28,7 +28,7 @@ namespace PluginExample {
/// <summary>
/// Description of SettingsForm.
/// </summary>
public partial class SettingsForm : Form {
public partial class SettingsForm : ExampleForm {
private static PluginExampleConfiguration conf = IniConfig.GetIniSection<PluginExampleConfiguration>();
public SettingsForm() {
@ -36,13 +36,9 @@ namespace PluginExample {
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
checkBox1.Checked = conf.AnnotationProcessor;
checkBox2.Checked = conf.GreyscaleProcessor;
}
void Button1Click(object sender, EventArgs e) {
conf.AnnotationProcessor = checkBox1.Checked;
conf.GreyscaleProcessor = checkBox2.Checked;
DialogResult = DialogResult.OK;
}