Exemplo n.º 1
0
        private void LoadSettings()
        {
            var    settings   = Serializer.Load <Settings>(GetFileName("Settings.xml"));
            string accentName = null;

            if (settings != null)
            {
                accentName = settings.AccentName;
                Application.Current.MainWindow.Topmost = settings.IsAlwaysOnTop;
            }
            _settings = settings ?? new Settings();

            if (accentName == null)
            {
                accentName = "Cobalt";
            }

            ChangeAccentCommand.Execute(Accents.First(acc => acc.Name == accentName));
        }