コード例 #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"));
            }
        }
コード例 #2
0
 internal static void Init()
 {
     values = IniReader.ReadFile(System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, @"language.conf"));
     //InitWelcomeMessage();
 }