protected override void OnClosed(EventArgs e)
        {
            if (TokensValidated)
            {
                SettingsStore.SaveSettings(Settings.Instance);
            }
            else
            {
                SettingsStore.LoadSettings(Settings.Instance);
            }

            base.OnClosed(e);
        }
Exemple #2
0
 private Settings()
 {
     ResetTokens = new RelayCommand(SetTokensToDefault);
     SettingsStore.LoadSettings(this);
 }