protected virtual void ExportSettings(TSettings settings) { using (var dialog = new SaveFileDialog { Filter = SettingsUI.DialogMask_XmlFilesOnly, Title = DialogSaveTitle }) { dialog.ShowDialog(); if (string.IsNullOrEmpty(dialog.FileName)) { return; } Service.Save(settings, dialog.FileName); } }
public void Save(SourceControlSettings settings) { _persister.Save(settings); }