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

            halfLivesForm.Show(dockPanel, DockState.Document);
        }
Beispiel #4
0
 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)
             ));
     }
 }