public void LoadTest()
    {
      SimlabFile target = new SimlabFile(); // TODO: Initialize to an appropriate value
      string FileName = @"C:\Jacob\Work\HydroNumerics\MikeSheTools\ScenarioController\test1NormalD100.sam";
      target.Load(FileName);

      Assert.AreEqual(-9.537879729, target.Samples.Values[2][0]);
    }
    private void loadSimLab(string filename)
    {

      Runs = new List<ScenarioRun>();
      slf = new SimlabFile();
      slf.Load(filename);

      for (int i = 0; i < slf.Samples.Values.First().Count(); i++)
      {
        ScenarioRun sc = new ScenarioRun();
        sc.Number = i + 1;
        sc.ParamValues = new SortedList<CalibrationParameter, double?>();

        foreach (var v in slf.Samples.Keys)
        {
          sc.ParamValues.Add(v, slf.Samples[v][i]);
        }
        Runs.Add(sc);
      }
      RaisePropertyChanged("Runs");

    }