Beispiel #1
0
        public SamplingVM(Sampling sampling)
        {
            this.sampling = sampling;
            this.universes = new ObservableCollection<UniverseVM>();
            foreach (Universe universeModel in sampling.Universes)
            {
                UniverseVM universe = new UniverseVM(universeModel);
                universe.Parent = this;
                universes.Add(universe);

            }
            samplingMethods = Options.SamplingMethods;
            modelSyncher = new ModelSyncher<UniverseVM, Universe>(this, universes, sampling.Universes);
        }
Beispiel #2
0
 public void RemoveUniverseFromVariable(UniverseVM universe)
 {
     variableForm.RemoveUniverse(universe);
 }
 public void RemoveUniverse(UniverseVM universe)
 {
     foreach (VariableVM variable in variables)
     {
         if (variable.UniverseId == universe.Id)
         {
             variable.UniverseId = null;
         }
     }
 }