From 0d0c0a5f453c57e1af23a3a5013069b2eb01647f Mon Sep 17 00:00:00 2001 From: RKrom Date: Tue, 10 Apr 2012 12:05:20 +0000 Subject: [PATCH] Removed a leftover property and added a method in the IniConfig to get a section by name git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1765 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Forms/MainForm.cs | 4 +--- GreenshotPlugin/IniFile/IniConfig.cs | 12 ++++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Greenshot/Forms/MainForm.cs b/Greenshot/Forms/MainForm.cs index ef02abedf..a98487b77 100644 --- a/Greenshot/Forms/MainForm.cs +++ b/Greenshot/Forms/MainForm.cs @@ -287,9 +287,7 @@ namespace Greenshot { private SettingsForm settingsForm = null; // Make sure we have only one about form private AboutForm aboutForm = null; - // Make sure we have only one help browser - private HelpBrowserForm helpBrowserForm = null; - + public MainForm(CopyDataTransport dataTransport) { instance = this; diff --git a/GreenshotPlugin/IniFile/IniConfig.cs b/GreenshotPlugin/IniFile/IniConfig.cs index 20bf1816e..5a524cfd3 100644 --- a/GreenshotPlugin/IniFile/IniConfig.cs +++ b/GreenshotPlugin/IniFile/IniConfig.cs @@ -260,6 +260,18 @@ namespace Greenshot.IniFile { } } + /// + /// Method used for internal tricks... + /// + /// + /// + public static IniSection GetIniSection(string sectionName) { + if (sectionMap.ContainsKey(sectionName)) { + return sectionMap[sectionName]; + } + return null; + } + /// /// A generic method which returns an instance of the supplied type, filled with it's configuration ///