Ejemplo n.º 1
0
        private void DataGridAdpsTimelineClick(object sender, RoutedEventArgs e)
        {
            var timeline = new GanttChart(CurrentStats, dataGrid.SelectedItems.Cast <PlayerStats>().ToList(), CurrentGroups);
            var main     = Application.Current.MainWindow as MainWindow;
            var window   = Helpers.OpenNewTab(main.dockSite, "adpsTimeline", "ADPS Timeline", timeline, 400, 300);

            window.CanFloat = true;
            window.CanClose = true;
        }
Ejemplo n.º 2
0
 internal void ShowSpellCasts(List <PlayerStats> selected)
 {
     if (selected?.Count > 0)
     {
         var spellTable = new SpellCastTable(CurrentStats?.ShortTitle ?? "", selected, CurrentStats);
         var main       = Application.Current.MainWindow as MainWindow;
         Helpers.OpenNewTab(main.dockSite, "spellCastsWindow", "Spell Cast Timeline", spellTable);
     }
 }
Ejemplo n.º 3
0
 internal override void ShowBreakdown(List <PlayerStats> selected)
 {
     if (selected?.Count > 0)
     {
         var main      = Application.Current.MainWindow as MainWindow;
         var healTable = new HealBreakdown(CurrentStats);
         healTable.Show(selected);
         Helpers.OpenNewTab(main.dockSite, "healWindow", "Healing Breakdown", healTable);
     }
 }
Ejemplo n.º 4
0
 internal override void ShowBreakdown(List <PlayerStats> selected)
 {
     if (selected?.Count > 0)
     {
         var main        = Application.Current.MainWindow as MainWindow;
         var damageTable = new DamageBreakdown(CurrentStats);
         damageTable.Show(selected);
         Helpers.OpenNewTab(main.dockSite, "damageWindow", "Damage Breakdown", damageTable);
     }
 }
Ejemplo n.º 5
0
 internal override void ShowBreakdown2(List <PlayerStats> selected)
 {
     if (selected?.Count > 0)
     {
         var main = Application.Current.MainWindow as MainWindow;
         var receivedHealingTable = new ReceivedHealingBreakdown(CurrentStats);
         receivedHealingTable.Show(selected);
         Helpers.OpenNewTab(main.dockSite, "receivedHealingWindow", "Received Healing Breakdown", receivedHealingTable);
     }
 }
Ejemplo n.º 6
0
 private void DataGridHealingLogClick(object sender, RoutedEventArgs e)
 {
     if (dataGrid.SelectedItems.Count == 1)
     {
         var log    = new HitLogViewer(CurrentStats, dataGrid.SelectedItems.Cast <PlayerStats>().First(), CurrentGroups);
         var main   = Application.Current.MainWindow as MainWindow;
         var window = Helpers.OpenNewTab(main.dockSite, "healingLog", "Healing Log", log, 400, 300);
         window.CanFloat = true;
         window.CanClose = true;
     }
 }
Ejemplo n.º 7
0
        private void DataGridHitFreqClick(object sender, RoutedEventArgs e)
        {
            if (dataGrid.SelectedItems.Count == 1)
            {
                var chart   = new HitFreqChart();
                var results = DamageStatsManager.Instance.GetHitFreqValues(dataGrid.SelectedItems.Cast <PlayerStats>().First(), CurrentStats);

                var main          = Application.Current.MainWindow as MainWindow;
                var hitFreqWindow = Helpers.OpenNewTab(main.dockSite, "freqChart", "Hit Frequency", chart, 400, 300);

                chart.Update(results);
                hitFreqWindow.CanFloat = true;
                hitFreqWindow.CanClose = true;
            }
        }