/// <summary> /// Load initialization configure files /// 1. initialize Logger instance; /// 2. read *.ini file as instance; /// </summary> /// <param name="path">configure file path.</param> public static IniInformation LoadIniFileAndStaticInstance(string path = null) { if (path == null) { path = Application.StartupPath + @"\config.ini"; } // initialize logger instance TraceLogger = new Logging(); TraceLogger.InitializeConfiguration(); // get *.ini file as a instance. var iniFile = GetIniInstance(path); // inistialize database handler instance. DatabaseHandler = new DatabaseBusiness(iniFile); return iniFile; }