Exemplo n.º 1
0
        public StatsPageViewModel(IEventInterface iev)
        {
            using (var scope = App.container.BeginLifetimeScope()) {
                dataService = App.container.Resolve <AzureDataService> ();
                cache       = App.container.Resolve <Cache>();
            }

            iev.TrendsTabOpened += TabOpenedMethod;
        }
Exemplo n.º 2
0
 public TrendingViewModel(IEventInterface iev)
 {
     cacheObjectOld = new CacheObject();
     using (var scope = App.container.BeginLifetimeScope()) {
         cache       = App.container.Resolve <Cache> ();
         dataService = App.container.Resolve <AzureDataService> ();
     }
     //iev.YourVoteTabOpened += TabOpenedMethod;
     TabOpenedMethod();
 }