private static void InitWelcomeMessage() { var configFile = IniReader.ReadFile(Path.Combine(Application.StartupPath, @"System/welcome_config.ini")); welcomeAlertEnabled = configFile["welcome.alert.enabled"] == "true"; welcomeAlertType = int.Parse(configFile["welcome.alert.type"]); welcomeAlertImage = configFile["welcome.alert.image"]; if (welcomeAlertEnabled) { welcomeAlert = File.ReadAllText(Path.Combine(Application.StartupPath, @"System/welcome_message.ini")); } }
internal static void Init() { values = IniReader.ReadFile(System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, @"System/locale.ini")); InitWelcomeMessage(); }