コード例 #1
0
 public DetalleNoticiaPage()
 {
     InitializeComponent();
     tap             = new TapGestureRecognizer();
     tap.Tapped     += Tap_Tapped;
     _noticiaService = new NoticiaService();
 }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: korbek99/XamDurazno
        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");
            }
        }
コード例 #3
0
        public NoticiasPage()
        {
            InitializeComponent();

            _noticiaService = new NoticiaService();
        }