Ejemplo n.º 1
0
        private void btnNuevaInvestigacion_Click(object sender, RoutedEventArgs e)
        {
            modInvestigacion frm = new modInvestigacion();

            frm.borde    = borde;
            frm.anterior = this;
            borde.Child  = frm;
        }
Ejemplo n.º 2
0
 private void btnEditar_Click(object sender, RoutedEventArgs e)
 {
     if (gvResultados.SelectedItem != null)
     {
         modInvestigacion frm = new modInvestigacion();
         frm.borde       = borde;
         frm.anterior    = this;
         frm.DataContext = gvResultados.SelectedItem;
         borde.Child     = frm;
     }
 }
Ejemplo n.º 3
0
 private void btnEditarInvestigacion_Click(object sender, RoutedEventArgs e)
 {
     if (gvResultados.SelectedItem != null)
     {
         modInvestigacion frm = new modInvestigacion();
         frm.borde       = borde;
         frm.anterior    = this;
         frm.DataContext = gvResultados.SelectedItem;
         frm.modificar   = true;
         borde.Child     = frm;
     }
     else
     {
         MessageBox.Show("Debe seleccionar una investigación para editar", "Advertencia");
     }
 }