private void Button_Click(object sender, RoutedEventArgs e) { DepartamentoFrm frmTrab = new DepartamentoFrm(); bool Resp = frmTrab.ShowDialog() ?? false; Refresh(txtBuscar.Text); }
private void Button_Click_1(object sender, RoutedEventArgs e) { int id = (int)((Button)sender).CommandParameter; var response = Metodos.Encontrar(id); DepartamentoFrm frm = new DepartamentoFrm(); frm.Type = TypeForm.Update; frm.DataFill = response[0]; bool Resp = frm.ShowDialog() ?? false; Refresh(txtBuscar.Text); }
private void txtVer_Click(object sender, RoutedEventArgs e) { int id = (int)((Button)sender).CommandParameter; var response = Metodos.Encontrar(id); DepartamentoFrm frmTrab = new DepartamentoFrm(); frmTrab.Type = TypeForm.Read; frmTrab.DataFill = response[0]; MAuditoria.Insertar(new DAuditoria( Menu.ActUsuario.idUsuario, DAuditoria.Ver, "Se ha visualzado el departamento codigo" + response[0].codigo)); bool Resp = frmTrab.ShowDialog() ?? false; Refresh(txtBuscar.Text); //MessageBox.Show(response[0].fechaNacimiento.ToString()); }