예제 #1
0
        public MainPage(Page _page)
        {
            var menuPage = new MenuPage();

            menuPage.Menu.ItemSelected += (sender, e) => NavigateTo(e.SelectedItem as MenuItem);

            Master = menuPage;
            Detail = new NavigationPage(_page);
        }
예제 #2
0
        public MainPage(bool enquetePessoal)
        {
            var menuPage = new MenuPage();

            menuPage.Menu.ItemSelected += (sender, e) => NavigateTo(e.SelectedItem as MenuItem);

            Master = menuPage;
            Detail = new NavigationPage(new EnquetePage(2));
        }
예제 #3
0
        public MainPage(List<Enquete> enquetesFiltradas = null)
        {
            var menuPage = new MenuPage();

            menuPage.Menu.ItemSelected += (sender, e) => NavigateTo(e.SelectedItem as MenuItem);

            Master = menuPage;

            if (!((bool)App.Current.Properties["isLogado"]))
            {
                App.Current.Properties["isLogado"] = true;
                Detail = new NavigationPage(new MenuPrincipalPage());
            }
            else
            {
                if (enquetesFiltradas != null && enquetesFiltradas.Any())
                    Detail = new NavigationPage(new EnquetePage(0, enquetesFiltradas));
                else
                    Detail = new NavigationPage(new EnquetePage(1));
            }
        }