internal DisplayRow(HalfLifeCalculator halfLifeCalculator, HalfLifeCalculator.ResultRow resultRow) { _resultRow = resultRow; _halfLifeCalculator = halfLifeCalculator; Results = new Dictionary<GroupKey, GroupResult>(); }
public ResultRow(HalfLivesForm form, HalfLifeCalculator.ResultRow halfLifeResultRow) { _form = form; _halfLifeResultRow = halfLifeResultRow; HalfLives = new Dictionary<string, LinkValue<HalfLifeCalculator.ResultData>>(); foreach (var resultDataEntry in _halfLifeResultRow.HalfLives) { var cohort = resultDataEntry.Key; HalfLives.Add(resultDataEntry.Key, new LinkValue<HalfLifeCalculator.ResultData>(resultDataEntry.Value, (sender, args)=>ShowHalfLifeForm(_halfLifeResultRow.Peptide, _halfLifeResultRow.ProteinName, cohort) )); } }