示例#1
0
        public MatchSummaryViewModel(IInternalService internalService, IWebsiteService website, ILoadingOverlayWindowService loadingOverlayWindow)
            : base(internalService)
        {
            Website = website;
            LoadingOverlayWindow = loadingOverlayWindow;

            IsFlyoutLoadingOverlayVisible = false;
            IsLeftChangeButtonVisible     = true;
            IsRightChangeButtonVisible    = true;
            IsLeftChangeButtonEnabled     = false;
            IsRightChangeButtonEnabled    = false;

            ScoreKillIcon                   = ImageStreams.OtherIconImage(OtherIcon.Kills);
            ScoreAssistIcon                 = ImageStreams.OtherIconImage(OtherIcon.Assist);
            ScoreDeathIcon                  = ImageStreams.OtherIconImage(OtherIcon.Death);
            ScoreSiegeDamageIcon            = ImageStreams.OtherIconImage(OtherIcon.SiegeDamage);
            ScoreHeroDamageIcon             = ImageStreams.OtherIconImage(OtherIcon.HeroDamage);
            ScoreHealingAbsorbedIcon        = ImageStreams.OtherIconImage(OtherIcon.HealAbsorbedDamage);
            ScoreSelfHealingIcon            = ImageStreams.OtherIconImage(OtherIcon.SelfHealing);
            ScoreDamageTakenIcon            = ImageStreams.OtherIconImage(OtherIcon.DamageTaken);
            ScoreExperienceContributionIcon = ImageStreams.OtherIconImage(OtherIcon.ExperienceContribution);
            BlueKillsIcons                  = ImageStreams.OtherIconImage(OtherIcon.KillsBlue);
            RedKillsIcons                   = ImageStreams.OtherIconImage(OtherIcon.KillsRed);

            LeftArrowDisabledIcon  = ImageStreams.OtherIconImage(OtherIcon.LongarrowLeftDisabled);
            LeftArrowDownIcon      = ImageStreams.OtherIconImage(OtherIcon.LongarrowLeftDown);
            LeftArrowHoverIcon     = ImageStreams.OtherIconImage(OtherIcon.LongarrowLeftHover);
            LeftArrowNormalIcon    = ImageStreams.OtherIconImage(OtherIcon.LongarrowLeftNormal);
            RightArrowDisabledIcon = ImageStreams.OtherIconImage(OtherIcon.LongarrowRightDisabled);
            RightArrowDownIcon     = ImageStreams.OtherIconImage(OtherIcon.LongarrowRightDown);
            RightArrowHoverIcon    = ImageStreams.OtherIconImage(OtherIcon.LongarrowRightHover);
            RightArrowNormalIcon   = ImageStreams.OtherIconImage(OtherIcon.LongarrowRightNormal);

            HasBans      = false;
            HasObservers = false;
            HasChat      = false;

            TeamLevelTimeGraph  = new TeamLevelTimeGraph();
            TeamExperienceGraph = new TeamExperienceGraph(Database);
            StatGraphs          = new StatGraphs(Database);

            Messenger.Default.Register <NotificationMessage>(this, (message) => ReceivedMessage(message));

            SimpleIoc.Default.Register <IMatchSummaryReplayService>(() => this);
        }
        public MatchSummaryViewModel(IInternalService internalService, IWebsiteService website, ILoadingOverlayWindowService loadingOverlayWindow)
            : base(internalService)
        {
            Website = website;
            LoadingOverlayWindow = loadingOverlayWindow;

            IsFlyoutLoadingOverlayVisible = false;
            IsLeftChangeButtonVisible     = true;
            IsRightChangeButtonVisible    = true;
            IsLeftChangeButtonEnabled     = false;
            IsRightChangeButtonEnabled    = false;

            HasBans      = false;
            HasObservers = false;
            HasChat      = false;

            TeamLevelTimeGraph  = new TeamLevelTimeGraph();
            TeamExperienceGraph = new TeamExperienceGraph(Database);
            StatGraphs          = new StatGraphs(Database);

            Messenger.Default.Register <NotificationMessage>(this, (message) => ReceivedMessage(message));

            SimpleIoc.Default.Register <IMatchSummaryReplayService>(() => this);
        }