Ejemplo n.º 1
0
        private async void btnAgregarTour_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var valor      = Decimal.Parse(txtValorTour.Text);
                var itinerario = txtItinerarioTour.Text;
                var nombre     = txtNombreTour.Text;

                Tour_TR tour = new Tour_TR(valor, itinerario, nombre);

                var res = await ComicProcessor.AgregarTour(tour);

                if (res != String.Empty)
                {
                    MessageBox.Show(res.ToString());
                }
            }
            catch (Exception eX)
            {
                MessageBox.Show(eX.ToString());
            }
        }