Ejemplo n.º 1
0
 public void Save()
 {
     using (var context = _contextFactory.Get())
     {
         foreach (var dsp in DatasourcePreferences)
         {
             context.Entry(dsp).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
         }
         context.SaveChanges();
     }
     SettingsUtils.SaveSettings(Settings);
 }
Ejemplo n.º 2
0
 private void MetroWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     SaveDataGridLayouts();
     SettingsUtils.SaveSettings(ViewModel.Settings);
     Dispose();
 }