Пример #1
0
 public InternalService(IDatabaseService database, IHeroesIconsService heroesIcons, ISelectedUserProfileService userProfile, IWebsiteService website)
 {
     Database    = database;
     HeroesIcons = heroesIcons;
     UserProfile = userProfile;
     Website     = website;
 }
        protected HmtViewModel(IHeroesIconsService heroesIcons)
        {
            HeroesIcons = heroesIcons;

            SetLoggers();
            SetRandomHomescreenBackgroundImage();
        }
Пример #3
0
 public ReplayFileData(Replay replay, IHeroesIconsService heroesIcons)
 {
     ReplaysContext = new ReplaysContext();
     Replay         = replay;
     HeroesIcons    = heroesIcons;
     HeroesIcons.LoadHeroesBuild(99999); // needed for auto translations
     ReplaysDb = new ReplaysDb();
 }
        public AboutControlViewModel(IDatabaseService database, IMainTabService mainTab, IHeroesIconsService heroesIcons)
        {
            Database    = database;
            MainTab     = mainTab;
            HeroesIcons = heroesIcons;

            IsCheckForUpdatesButtonEnabled = true;
            PeriodicallyCheckUpdates();
        }
        public MatchHistoryMatch(IInternalService internalService, IWebsiteService website, ReplayMatch replayMatch)
        {
            InternalService = internalService;
            HeroesIcons     = internalService.HeroesIcons;
            UserProfile     = internalService.UserProfile;
            Website         = website;

            ReplayMatch = replayMatch;

            SetMatch();
        }
Пример #6
0
        /// <summary>
        /// Contstructor
        /// </summary>
        /// <param name="iRawDataQueries"></param>
        protected RawDataViewModelBase(IRawDataQueries <T> iRawDataQueries, IHeroesIconsService heroesIcons)
            : base(heroesIcons)
        {
            AddColumnNamesList();
            AddOrderByList();
            AddConditionalOperandsList();
            AddButtonCommandsActions();

            IRawDataQueries = iRawDataQueries;
            IsQueryActive   = true;
            QueryStatus     = "Awaiting query...";
            RowsReturned    = 0;
        }
Пример #7
0
            public static List <string> GetBuildsList(IHeroesIconsService heroesIcons)
            {
                List <string> list = heroesIcons.GetListOfHeroesBuilds().ConvertAll(x => x.ToString());

                list.Add("47219");
                list.Add("47133");
                list.Add("46889");
                list.Add("46869");
                list.Add("46787");
                list.Add("46690");
                list.Add("46446");
                list.Add("46158");
                list.Add("45635");
                list.Add("45228");
                list.Add("44941");
                list.Add("44797");
                list.Add("44468");
                list.Add("44468");
                list.Add("44124");
                list.Add("43905");
                list.Add("43571");
                list.Add("43259");
                list.Add("43170");
                list.Add("43051");
                list.Add("42958");
                list.Add("42590");
                list.Add("42506");
                list.Add("42406");
                list.Add("42273");
                list.Add("42178");
                list.Add("41810");
                list.Add("41504");
                list.Add("41393");
                list.Add("41150");
                list.Add("40798");
                list.Add("40697");
                list.Add("40431");
                list.Add("40322");
                list.Add("40087");
                list.Add("39951");
                list.Add("39709");
                list.Add("39595");
                list.Add("39445");

                // end here, no need to add any earlier builds
                return(list);
            }
 public RawMatchTeamExperienceViewModel(IRawDataQueries <ReplayMatchTeamExperience> iRawDataQueries, IHeroesIconsService heroesIcons)
     : base(iRawDataQueries, heroesIcons)
 {
 }
Пример #9
0
 public RawMatchPlayerViewModel(IRawDataQueries <ReplayMatchPlayer> iRawDataQueries, IHeroesIconsService heroesIcons)
     : base(iRawDataQueries, heroesIcons)
 {
 }
 public RawHotsLogsUploadViewModel(IRawDataQueries <ReplayHotsLogsUpload> iRawDataQueries, IHeroesIconsService heroesIcons)
     : base(iRawDataQueries, heroesIcons)
 {
 }
 public RawAllHotsPlayerHeroesViewModel(IRawDataQueries <ReplayAllHotsPlayerHero> iRawDataQueries, IHeroesIconsService heroesIcons)
     : base(iRawDataQueries, heroesIcons)
 {
 }