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);
            }
        }
Exemplo n.º 2
0
 public void Save(SourceControlSettings settings)
 {
     _persister.Save(settings);
 }