예제 #1
0
 public ThemeConfigViewModel(
     IDopyUiConfiguration uiConfiguration,
     IConfigTranslations uiTranslations,
     MetroThemeManager metroThemeManager
     )
 {
     UiConfiguration    = uiConfiguration;
     UiTranslations     = uiTranslations;
     _metroThemeManager = metroThemeManager;
     _metroThemeManager.ChangeTheme(UiConfiguration.Theme, UiConfiguration.ThemeColor);
 }
        public override void AfterLoad()
        {
            _metroThemeManager.ChangeTheme(Theme, ThemeColor);

            base.AfterLoad();
        }
예제 #3
0
 /// <inheritdoc />
 public override void Rollback()
 {
     MetroConfiguration.RollbackTransaction();
     _metroThemeManager.ChangeTheme(MetroConfiguration.Theme, MetroConfiguration.ThemeColor);
 }