Пример #1
0
        private void MenuSettings_Click(object sender, RoutedEventArgs e)
        {
            Action <Grid> setCustomCursor = (grid) =>
            {
                CursorArrow arrow = new CursorArrow();
                arrow.SetCursorSize(50);
                arrow.BindToColor(Context.AppConfig.Settings, "CursorColor.B");
                grid.Cursor = CursorFromControl.Create(arrow, new Size(80, 80));
            };

            OptionsWindow.ShowOptionsEx(this, Context.AppConfig, "Settings", setCustomCursor, "Settings", "Clock Configuration", "Clock Font");
        }
Пример #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _mnuPlayLists.ItemsSource = MediaDB.RootList.PlayLists;

            ConfigurationRestore(Context.AppConfig.Settings);

            //CursorArrow arrow = new CursorArrow();
            //arrow.SetCursorSize(50);
            //arrow.BindToColor(Context.AppConfig.Configuration, "CursorColor.B");
            //this.Cursor = CursorFromControl.Create(arrow, new Size(80, 80));

            _cursorArrow.Visibility = Visibility.Hidden;
            _cursorArrow.Load_Cursor(_gridMain, sizeRatio: 20);
            _cursorArrow.BindToColor(Context.AppConfig.Settings, "CursorColor.B");

            Application.Current.Dispatcher.BeginInvoke(new Action(() => SetPlayList(MediaDB.SelectedPlayList)));
        }