Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
            }
        }