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"); }
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"); }