Ejemplo n.º 1
0
        public GraphPlayerTabVM(MainWindowViewModel parentVM, ColumnVisibilityVM columnVisVM, PSO2Player associatedPlayer)
        {
            parent = parentVM;
            parent.OnAnonymizePlayersChanged += Parent_OnAnonymizePlayersChanged;
            parser            = parentVM.CurrentDamageParser;
            player            = associatedPlayer;
            TabName           = associatedPlayer.Name;
            ColumnVisibility  = columnVisVM;
            AreColumnsVisible = true;

            itemLabelFormatter = (c) => c.Y.ToString("0.##");
            pointFormatter     = (c) => TimeSpan.FromSeconds(c.X).ToString();

            totalDamageValues.Add(new ObservablePoint(0, 0));
            totalDPSValues.Add(new ObservablePoint(0, 0));
            totalDamageTakenValues.Add(new ObservablePoint(0, 0));
            updateDPSValues.Add(new ObservablePoint(0, 0));
            averageMPAValues.Add(new ObservablePoint(0, 0));

            DamageInfosView = createViewSource();

            BuildChartSeries();

            parser.UpdateTick += Parser_UpdateTick;
        }
Ejemplo n.º 2
0
        public AllPlayersTabPlayerVM(MainWindowViewModel parentVM, PSO2Player player)
        {
            AssociatedPlayer = player;
            Name             = AssociatedPlayer.Name;
            parent           = parentVM;
            parent.OnAnonymizePlayersChanged += Parent_OnAnonymizePlayersChanged;
            parser                     = parent.CurrentDamageParser;
            BackgroundBrush            = new LinearGradientBrush();
            BackgroundBrush.StartPoint = new System.Windows.Point(0, 0);
            BackgroundBrush.EndPoint   = new System.Windows.Point(1, 1);
            ParserUpdate();

            loadHighlightColor();
        }