private void BtModificarCont_Click(object sender, RoutedEventArgs e)
        {
            Contratos con = new Contratos()
            {
                institucion = TxbInstContra.Text,
                curso       = TxbCursoContra.Text,
                cantidad    = int.Parse(TxbCantContra.Text),
                nombre_rep  = TxbNombRContra.Text,
                rut_rep     = TxbCRutRContra.Text,
                correo_rep  = TxbCorreoRContra.Text,
                seguro      = CbSeguroContra.SelectedIndex.ToString(),
                destino     = CbDestinoContra.SelectedIndex.ToString(),
                costo       = int.Parse(TxbCostoContra.Text)
            };

            if (con.Update())
            {
                MessageBox.Show("Contrato modificado", "Información", MessageBoxButton.OK, MessageBoxImage.Information);
                Limpiar();
            }
            else
            {
                MessageBox.Show("Contrato no pudo ser kodificado", "Atención", MessageBoxButton.OK, MessageBoxImage.Exclamation);
            }
        }