示例#1
0
        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;
            }
        }
示例#2
0
        public rootPage()
        {
            menuPage = new menuPage();
            Master   = menuPage;
            var displayPage = new tenderPage();

            Detail = new NavigationPage(displayPage);

            menuPage.menu.ItemSelected += onItemSelected;
        }
示例#3
0
        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;
        }