public rootPage(bool isUserLoggedIn) { if (isUserLoggedIn) { //set the menu list items for logged in user menuData data = new menuData(true); menuPage = new menuPage(); menuPage.menu.ItemsSource = data; Master = menuPage; //var displayPage = new tenderEligiblePage(); var displayPage = new tenderPage(); //var displayPage = new accountRegistrationPage(); Detail = new NavigationPage(displayPage); menuPage.menu.ItemSelected += onItemSelected; } else { //Admin is logged in //set the menu list items for logged in admin menuData data = new menuData(false); menuPage = new menuPage(); menuPage.menu.ItemsSource = data; Master = menuPage; var displayPage = new announcementPage(); Detail = new NavigationPage(displayPage); menuPage.menu.ItemSelected += onItemSelected; } }
public rootPage() { menuPage = new menuPage(); Master = menuPage; var displayPage = new tenderPage(); Detail = new NavigationPage(displayPage); menuPage.menu.ItemSelected += onItemSelected; }
public rootPage(bool isLoggedIn) { //set the menu list items for logged in user menuData data = new menuData(true); menuPage = new menuPage(); menuPage.menu.ItemsSource = data; Master = menuPage; var displayPage = new tenderEligiblePage(); Detail = new NavigationPage(displayPage); menuPage.menu.ItemSelected += onItemSelected; }