Changed Iniconfig framework to static, this makes it even easier to use.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@816 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2010-08-18 06:22:17 +00:00
parent b68fa2e0ff
commit 847556570b

View file

@ -70,9 +70,9 @@ namespace GreenshotOCR {
}
// Load configuration
config = IniConfig.GetInstance().GetSection<OCRConfiguration>();
config = IniConfig.GetIniSection<OCRConfiguration>();
if (config.IsDirty) {
IniConfig.GetInstance().Save();
IniConfig.Save();
}
this.host.RegisterHotKey(3, 0x2C, new HotKeyHandler(MyHotkeyHandler));
@ -115,7 +115,7 @@ namespace GreenshotOCR {
SettingsForm settingsForm = new SettingsForm(GetLanguages(), config);
DialogResult result = settingsForm.ShowDialog();
if (result == DialogResult.OK) {
IniConfig.GetInstance().Save();
IniConfig.Save();
}
}