public MainPage(Page _page) { var menuPage = new MenuPage(); menuPage.Menu.ItemSelected += (sender, e) => NavigateTo(e.SelectedItem as MenuItem); Master = menuPage; Detail = new NavigationPage(_page); }
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)); }
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)); } }