Exemplo n.º 1
0
        public DelegateMeter(IDelegateNetworkWrapper networkWrapper, IDelegateCombatControl combatControl)
        {
            _combatControl = combatControl;

            networkWrapper.SkillEvent   += OnSkillEvent;
            combatControl.CombatUpdated += CombatEventHandler;
        }
Exemplo n.º 2
0
 public DetailedView(IDelegateBreakdown breakdown, IDelegateCombatControl combatControl)
 {
     Breakdown = new List <ISkillResult>();
     foreach (var history in breakdown.History)
     {
         Breakdown.Add(history);
     }
     InitializeComponent();
     pieChartBreakdown.Content = new PieChartViewControl(combatControl);
 }
Exemplo n.º 3
0
 public PieChartViewControl(IDelegateCombatControl combatControl)
 {
     PieCollection  = new SeriesCollection();
     _combatControl = combatControl;
     InitializeComponent();
     //this.OneWayBind(ViewModel, model => model.SeriesCollection, control => control._contentLoaded);
     _combatControl.CurrentCombat.ItemChanged.Select(x => ConvertBreakdownToSeriesCollection(x.Sender))
     .ObserveOn(RxApp.MainThreadScheduler)
     .Subscribe(UpdatePieSeries);
 }
Exemplo n.º 4
0
        public MeterUiModel(IDelegateMeter meter, IDelegateCombatControl combatControl)
        {
            _combatControl            = combatControl;
            meter.CombatUpdatedEvent += OnCombatUpdated;

            Breakdown        = new ObservableCollection <IDelegateBreakdown>();
            HistoryBreakdown = new ObservableCollection <string>();
            HistoryList      = new Dictionary <string, ObservableCollection <IDelegateBreakdown> >();

            UpdatedCounter = 0;
            TitleText      = "Delegate";

            Messenger.Default.Register <SelectionChangedEventArgs>(this, UpdatedIndex);
            Messenger.Default.Register <DataGrid>(this, OnDataGridClick);

            var breakdown = new DelegateBreakdown {
                Source = "Me you f**k"
            };

            Breakdown.Add(breakdown);
        }