mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
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:
parent
fc0d32a82f
commit
0d0c0a5f45
2 changed files with 13 additions and 3 deletions
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue