コード例 #1
0
        public ConfigFileManager()
        {
            Messenger.Default.Register <string>(this, "SetConfigWalletPath", (string s) => { _config.WalletPath = s; SaveConfig(); });
            Messenger.Default.Register <string>(this, "SetConfigColorScheme", (string s) => { _config.ColorScheme = s; SaveConfig(); });
            Messenger.Default.Register <ConfigLanguage>(this, "SetConfigLanguage", (ConfigLanguage l) => { _config.Language = l; SaveConfig(); });
            Messenger.Default.Register <ConfigCurrency>(this, "SetConfigCurrency", (ConfigCurrency c) => { _config.Currency = c; SaveConfig(); });

            _tools = new ConfigFileTools();
            Initialize();
        }
コード例 #2
0
 public void Init()
 {
     _configtools = new ConfigFileTools();
 }