public DetalleNoticiaPage() { InitializeComponent(); tap = new TapGestureRecognizer(); tap.Tapped += Tap_Tapped; _noticiaService = new NoticiaService(); }
public MainPage() { InitializeComponent(); tapReclamar = new TapGestureRecognizer(); tapReclamar.Tapped += async(object sender, EventArgs e) => { if (String.IsNullOrEmpty(GeneralSetting.UserSettings)) { var alertResult = await DisplayAlert("Atención!", "Para crear reclamos debe registrarse ¿desea continuar?", "No", "Si"); if (!alertResult) { await Navigation.PushAsync(new RegistroPage()); } } else { await Navigation.PushAsync(new CrearReclamoPage()); } }; stkReclama.GestureRecognizers.Add(tapReclamar); _noticiaService = new NoticiaService(); listNoticias.ItemSelected += ListNoticias_ItemSelected; if (Device.OS != TargetPlatform.iOS) { //this.ToolbarItems.Add(logo); this.Title = "Home"; //NavigationPage.SetTitleIcon(this, "disfruta.png"); } else { this.Title = "Home"; //NavigationPage.SetTitleIcon(this, "disfruta.png"); } }
public NoticiasPage() { InitializeComponent(); _noticiaService = new NoticiaService(); }