상속: CatalogNewsViewModel
		public RootViewModel(IFNewsService service, IMvxDeviceInfo deviceInfoPlugin):base(service,deviceInfoPlugin)
		{
			if (Settings.USE_RECENT_POSTS ){
				Home = new RecentPostsViewModel(service, deviceInfoPlugin);
				((RecentPostsViewModel)Home).Init(Settings.RECENT_POST_CATEGORY_ID, "Home");
			} else {
				Home = new HomeViewModel(service, deviceInfoPlugin);
			}
			Menu = new MenuViewModel();
			Service = service;

			Settings.RootViewModel = this;
			Mvx.Trace ("Init RootViewModel");
		}
예제 #2
0
        public RootViewModel(IFNewsService service, IMvxDeviceInfo deviceInfoPlugin) : base(service, deviceInfoPlugin)
        {
            if (Settings.USE_RECENT_POSTS)
            {
                Home = new RecentPostsViewModel(service, deviceInfoPlugin);
                ((RecentPostsViewModel)Home).Init(Settings.RECENT_POST_CATEGORY_ID, "Home");
            }
            else
            {
                Home = new HomeViewModel(service, deviceInfoPlugin);
            }
            Menu    = new MenuViewModel();
            Service = service;

            Settings.RootViewModel = this;
            Mvx.Trace("Init RootViewModel");
        }