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) )); } }
public void ShowHalfLivesForm() { HalfLivesForm halfLivesForm = new HalfLivesForm(Workspace); halfLivesForm.Show(dockPanel, DockState.Document); }
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) )); } }