private void Button_Click(object sender, RoutedEventArgs e) { TipoMetricaFrm frmTrab = new TipoMetricaFrm(); bool Resp = frmTrab.ShowDialog() ?? false; Refresh(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { int id = (int)((Button)sender).CommandParameter; var response = Metodos.Encontrar(id); TipoMetricaFrm frm = new TipoMetricaFrm(); frm.Type = TypeForm.Update; frm.DataFill = response[0]; bool Resp = frm.ShowDialog() ?? false; Refresh(); }
private void txtVer_Click(object sender, RoutedEventArgs e) { int id = (int)((Button)sender).CommandParameter; var response = Metodos.Encontrar(id); TipoMetricaFrm frmTrab = new TipoMetricaFrm(); frmTrab.Type = TypeForm.Read; frmTrab.DataFill = response[0]; MAuditoria.Insertar(new DAuditoria( Menu.ActUsuario.idUsuario, DAuditoria.Ver, "Se ha visualzado el Tipo Metrica Nº" + response[0].idTipoMetrica)); bool Resp = frmTrab.ShowDialog() ?? false; Refresh(); }