//Boton para realizar la accion de ingresar datos de Tour.
        private void btnRegistrarTour_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (cbxIdServicioTour.SelectedIndex == -1)
                {
                    MessageBox.Show("Debe seleccionar un código de servicio.");
                }
                else if (string.IsNullOrEmpty(txtDescripcionTour.Text) || txtDescripcionTour.Text.Length < 5 && txtDescripcionTour.Text.Length > 200)
                {
                    MessageBox.Show("Descripción no debe estar vacío y tiene que estar entre 5 a 200 carácteres.");
                }
                else
                {
                    tc = new TourCollection();

                    int    id_servicio = int.Parse(cbxIdServicioTour.SelectedValue.ToString());
                    string descripcion = txtDescripcionTour.Text;

                    var insercion = tc.InsertaTourC(id_servicio, descripcion);

                    if (insercion == true)
                    {
                        this.Close();
                    }
                    else
                    {
                        lblmensaje.Content = "Error de inserción.";
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Ha ocurrido un error, contacte al administrador: " + ex.Message, "Excepción detectada", MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }