コード例 #1
0
        //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;
        }
コード例 #2
0
 private void OnFontsSettingsChanged(FontsSettings newFonts)
 {
     fonts = newFonts;
 }