mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 17:13:44 -07:00
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:
parent
53af559d22
commit
72b3f774ce
4 changed files with 46 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue