public FaseCyclusTemplateViewModel(TLCGenTemplateModel <FaseCyclusModel> template) { _Template = template; foreach (var fc in template.Items) { Fasen.Add(fc); } Fasen.CollectionChanged += Fasen_CollectionChanged; if (Fasen.Any()) { SelectedFaseCyclus = Fasen.First(); } FaseCyclusTypeOpties.Clear(); var fdescs = Enum.GetValues(typeof(FaseTypeEnum)); foreach (FaseTypeEnum d in fdescs) { FaseCyclusTypeOpties.Add(d.GetDescription()); } DetectorTypeOpties.Clear(); var descs = Enum.GetValues(typeof(DetectorTypeEnum)); foreach (DetectorTypeEnum d in descs) { DetectorTypeOpties.Add(d.GetDescription()); } }
public DetectorTemplateViewModel(TLCGenTemplateModel <DetectorModel> template) { _Template = template; foreach (var fc in template.Items) { Detectoren.Add(fc); } Detectoren.CollectionChanged += Detectoren_CollectionChanged; DetectorTypeOpties.Clear(); var descs = Enum.GetValues(typeof(DetectorTypeEnum)); foreach (DetectorTypeEnum d in descs) { DetectorTypeOpties.Add(d.GetDescription()); } }