Example #1
0
        private void BT_DefaultColor_Click(object sender, RoutedEventArgs e)
        {
            ColorsSettings defaultColors = ColorsSettings.GetDefaultColors();

            defaultColors.BackgroundColor = settings.colors.BackgroundColor;

            SettingsManager.SetColors(defaultColors);
        }
        //Constructor
        public HomeworkViewerItem()
        {
            InitializeComponent();

            colors = Global.userData.settings.colors;
            fonts  = Global.userData.settings.fonts;

            menu        = this.FindResource("Menu") as ContextMenu;
            highlighted = false;

            EventsManager.ColorsSettingsChanged += OnColorsSettingsChanged;
            EventsManager.FontsSettingsChanged  += OnFontsSettingsChanged;
        }
 private void OnColorsSettingsChanged(ColorsSettings newColors)
 {
     colors = newColors;
 }
Example #4
0
 private void OnColorsSettingsChanged(ColorsSettings newColors)
 {
     ShowCurrentColors();
 }