예제 #1
0
        public Gastos(ref FragDetailViewModel viewModel)
        {
            InitializeComponent();
            BindingContext = this.viewModel = viewModel;


            TapGestureRecognizer tapEventSave = new TapGestureRecognizer();

            tapEventSave.Tapped += BtnAgregar_Clicked;
            myImgAdd.GestureRecognizers.Add(tapEventSave);

            TapGestureRecognizer tapEventClose = new TapGestureRecognizer();

            tapEventClose.Tapped += BtnCancelar_Clicked;
            myImgBack.GestureRecognizers.Add(tapEventClose);
        }
예제 #2
0
 /// <summary>
 /// Método utilizado para resetear los controles a su estado inicial.
 /// </summary>
 private void resetearControles()
 {
     try
     {
         txtDescripción.Text         = string.Empty;
         _viewModel                  = new FragDetailViewModel();
         txtComprador.Text           = string.Empty;
         lblFechaElaboracion.Text    = string.Empty;
         lblFechaVenta.Text          = string.Empty;
         lblMontoPolipo.Text         = string.Empty;
         lblMontoTotal.Text          = string.Empty;
         txtIdColoniaMadre.Text      = string.Empty;
         txtPrecioSugeridoVenta.Text = string.Empty;
         txtPrecioVenta.Text         = string.Empty;
         txtUnidades.Text            = string.Empty;
         txtURL.Text                 = string.Empty;
     }
     catch (Exception ex)
     { throw ex; }
 }