Ejemplo n.º 1
0
        private void ChangeThemeAppearance(object sender, RoutedEventArgs e)
        {
            var tag   = ((sender as Button).Parent as StackPanel).Tag.ToString();
            var theme = new ThemeWindow(_settingsViewModel, _settingsViewModel.Themes.First(f => f.Id == tag));

            theme.UpdateTheme += Theme_UpdateTheme;
            theme.Show();
        }
Ejemplo n.º 2
0
        private void AddTheme(object sender, RoutedEventArgs e)
        {
            var theme = new ThemeWindow(_settingsViewModel, new Theme
            {
                Id = Guid.NewGuid().ToString("N")
            });

            theme.UpdateTheme += Theme_UpdateTheme;
            theme.Show();
        }