public static void SaveSettings(SettingsViewModel viewModel) { ApplicationData.ApplicationSettings.APIKey = viewModel.APIKey; ApplicationData.ApplicationSettings.ValidAPIKeyExists = viewModel.ValidKey; ApplicationData.ApplicationSettings.SaveAPIKey = viewModel.SaveAPIKey; ApplicationData.ApplicationSettings.APIThrottleCount = viewModel.APICallLimit; HelpScoutRequestManager.UpdatedAPIKey(viewModel.APIKey); }
public static void LoadSettings(SettingsViewModel viewModel) { viewModel.APIKey = ApplicationData.ApplicationSettings.APIKey; viewModel.SaveAPIKey = ApplicationData.ApplicationSettings.SaveAPIKey; viewModel.APICallLimit = ApplicationData.ApplicationSettings.APIThrottleCount; }