Beispiel #1
0
        public void LoadSettings()
        {
            Settings = SettingsEdit.GetConfigSettings();

            Server         = Settings.Server;
            DbName         = Settings.Database;
            Authentication = Settings.Authentication;
            XmlFilePath    = Settings.XmlFilePath;

            if (Directory.Exists(XmlFilePath))
            {
                _eventAggregator.GetEvent <GetFilePathCommand>().Publish(XmlFilePath);
            }
            else
            {
                XmlFilePath = string.Empty;
            }
        }
Beispiel #2
0
 public SettingsEdit SaveConfig(SettingsEdit data)
 {
     data = data.Save();
     return(data);
 }
Beispiel #3
0
 private void SettingsUpdated(SettingsEdit obj) => Settings = obj;