/// <summary> /// Load the list of active providers /// </summary> /// <param name="configFile">Provider configuration file</param> private void PopulateProviderListView(string configFile) { Providers.Clear(); var providers = ProvidersConfig.Load(configFile); foreach (var provider in providers) { Providers.Add(provider); } }
/// <summary> /// Save the modified list of providers /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SaveButton_OnClick(object sender, RoutedEventArgs e) { ProvidersConfig.Save(_providerConfigFile, Providers.ToList()); MessageBox.Show("Configuration updated", "Saved"); Close(); }