Exemplo n.º 1
0
        public object Clone()
        {
            MainWindowSettingsRepository clone = (MainWindowSettingsRepository)MemberwiseClone();

            clone.ThemeSettings = (ThemeSettings)ThemeSettings.Clone();
            return(clone);
        }
Exemplo n.º 2
0
        public void LoadSettings(object target, object settings)
        {
            MainWindowSettingsRepository repository = new MainWindowSettingsRepository();

            repository.UseDefaultWindowSettings = true;
            repository.ThemeSettings            = ThemeHelper.GetDefaultThemeSettings();
            repository.IsCommonWorkspaceEnabled = true;

            if (settings != null)
            {
                repository = (MainWindowSettingsRepository)settings;
            }

            ((MainWindow)target).LoadUserSettings(repository);

            _repository = repository;
        }