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
This commit is contained in:
RKrom 2012-04-10 12:05:20 +00:00
commit 0d0c0a5f45
2 changed files with 13 additions and 3 deletions

View file

@ -287,8 +287,6 @@ namespace Greenshot {
private SettingsForm settingsForm = null; private SettingsForm settingsForm = null;
// Make sure we have only one about form // Make sure we have only one about form
private AboutForm aboutForm = null; private AboutForm aboutForm = null;
// Make sure we have only one help browser
private HelpBrowserForm helpBrowserForm = null;
public MainForm(CopyDataTransport dataTransport) { public MainForm(CopyDataTransport dataTransport) {
instance = this; instance = this;

View file

@ -260,6 +260,18 @@ namespace Greenshot.IniFile {
} }
} }
/// <summary>
/// Method used for internal tricks...
/// </summary>
/// <param name="sectionName"></param>
/// <returns></returns>
public static IniSection GetIniSection(string sectionName) {
if (sectionMap.ContainsKey(sectionName)) {
return sectionMap[sectionName];
}
return null;
}
/// <summary> /// <summary>
/// A generic method which returns an instance of the supplied type, filled with it's configuration /// A generic method which returns an instance of the supplied type, filled with it's configuration
/// </summary> /// </summary>