private static void InitWelcomeMessage() { Dictionary <string, string> configFile = IniReader.ReadFile(System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, @"System/welcome_config.ini")); welcomeAlertEnabled = configFile["welcome.alert.enabled"] == "true"; if (welcomeAlertEnabled) { welcomeAlert = File.ReadAllText(System.IO.Path.Combine(System.Windows.Forms.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(); }