Ejemplo n.º 1
0
        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"));
            }
        }
Ejemplo n.º 2
0
 internal static void Init()
 {
     values = IniReader.ReadFile(System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, @"System/locale.ini"));
     InitWelcomeMessage();
 }