示例#1
0
        private void loadReport()
        {
            staticTimer.reset();
            staticTimer.start("Total");
            Report report = reader.GetReport(selectedAction, selectedAggPos, selectedCllPos, selectedBoardType, selectedBoardSubtype);

            spot = new SpotModel(report);


            if (selectedCategory != null && spot.Categories.Contains((HandCategory)selectedCategory))
            {
                typeList = spot.StrengthTree[(HandCategory)selectedCategory];
            }
            else
            {
                typeList     = null;
                selectedType = null;
            }

            // refresh typelist
            if (selectedType != null && typeList.Contains((HandType)selectedType))
            {
                spot.LoadPlotModel((HandType)selectedType);
                NotifyOfPropertyChange(() => PlotModel);
            }
            else
            {
                selectedType = null;
            }
            NotifyOfPropertyChange(() => Spot);
            staticTimer.stop("Total");
            staticTimer.log("Total");
        }
示例#2
0
        public void OpenPreferences()
        {
            manager.ShowDialog(new PreferencesViewModel());

            if (selectedType != null && typeList.Contains((HandType)selectedType))
            {
                spot.LoadPlotModel((HandType)selectedType);
                NotifyOfPropertyChange(() => PlotModel);
            }
            else
            {
                BtnClearGraph();
            }

            updatePlaceholderLink();
            determineButtonVisibility();

            NotifyOfPropertyChange(() => BackgroundColour);
            NotifyOfPropertyChange(() => ForegroundColour);
            NotifyOfPropertyChange(() => Font);
            NotifyOfPropertyChange(() => FontWeight);
        }