private void PrintReference() { human _human= _fe.humans.FirstOrDefault(id=>id.idh==_humanid); if (_reference != EnumPReferences.NoReference) { ReferenceFactory refsfactory= new ReferenceFactory(_human, _ge, _fe); try { refsfactory.GetReference(new List<int> { _testresult.idtr }, _reference).Print(true); } catch (Exception ex) { MessageBox.Show(ex.Message); } } else { try{ ReportFactory.CreateReport(_test, _human, _testresult, _ge, _fe, false).Print(true); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }
private void FillReferences() { dg_references.Rows.Clear(); if (_currenthumanid != 0) { dg_references.Rows.Clear(); human h = _fe.humans.First(hh => hh.idh == _currenthumanid); _referfactory = new ReferenceFactory(h,_ge,_fe); for (int rowindex = 0; rowindex < _referfactory.EvalRefs.Count; rowindex++) { dg_references.Rows.Add(_referfactory.EvalRefs[rowindex]); } } }