public App() { Page page; InitializeComponent(); if (App.UserSession == null) { App.UserSession = new ZCMobileSystemConfiguration { SideContentVisibility = true }; } if (Properties.ContainsKey(SelectedDataCenter)) { App.UserSession.SelectedDataCenter = (string)Properties[SelectedDataCenter]; } if (!string.IsNullOrEmpty(App.UserSession.SelectedDataCenter)) { page = new LoginPage(); } else { page = new MainPage(); } App.Current.MainPage = MasterDetailControl.Create <MasterDetail, MasterDetailViewModel>(App.IsUSerLoggedIn, page); GetPageTitles(); }
public App() { InitializeComponent(); MainPage = MasterDetailControl.Create<MasterDetail, MasterDetailViewModel>(); }