Ejemplo n.º 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;
            }
        }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
0
        public menuListView()
        {
            List <menuItem> data = new menuData();

            ItemsSource = data;

            BackgroundColor          = Color.FromHex("#3C83B8");
            VerticalOptions          = LayoutOptions.FillAndExpand;
            this.SeparatorVisibility = SeparatorVisibility.None;
            ItemTemplate             = new DataTemplate(() => {
                var label = new Label {
                    VerticalOptions = LayoutOptions.FillAndExpand, TextColor = Color.White, Margin = new Thickness(5)
                };
                label.SetBinding(Label.TextProperty, "Title");
                //717D7E
                return(new ViewCell {
                    View = label
                });
            });
        }