static void LoadConfiguration() { IniFile iniFile = new IniFile(System.IO.Path.Combine(Application.StartupPath, Common.CONFIG_FILENAME)); string strAppearance = iniFile.Read(ConfigIniSection.Application, "Appearance", string.Empty); iniFile.Dispose(); if (System.IO.File.Exists(System.IO.Path.Combine(Application.StartupPath, strAppearance))) { AppearanceList aprList = AppearanceSerializer.Deserialize(strAppearance); AppearanceManager.RegisterAppearance(aprList); } else { if (strAppearance != string.Empty) { MessageDialog.ShowBusiness(null, null, "Not found appearance configuration file."); } //Unregister appearance and use system appearance. AppearanceManager.UnregisterAppearance(); } }