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(); }
public void Init() { _configtools = new ConfigFileTools(); }