public static void loadConfigFile()
{
ExeConfigurationFileMap file = new ExeConfigurationFileMap();
file.ExeConfigFilename = Application.StartupPath + "\\PermissionAllocator.exe.config";
Program.Config = ConfigurationManager.OpenMappedExeConfiguration(file, ConfigurationUserLevel.None);
}
public static Configuration Config { get; private set; }
private string createConnectionString()
{
return Program.Config.ConnectionStrings.ConnectionStrings["db"].ConnectionString;
}