public TransportVM(MaterialTransport transport, IViewModelParent parent) { _transport = transport; _parent = parent; _label1 = transport.Definition.Level1; _label2 = transport.Definition.Level2; _label3 = transport.Definition.Level3; _label4 = transport.Definition.Level4; }
public MaterialSetVM(GWPMaterialSet materialSet, IViewModelParent parent) { _materials = materialSet; _parent = parent; //_materialVMs = new ObservableCollection<MaterialVM>(); MaterialNames = new ObservableCollection <string>(); foreach (var item in materialSet.Materials) { MaterialNames.Add(item.Name); //_materialVMs.Add(new MaterialVM(item, this)); } }
public ConstituentVM(CarbonMaterials.CementAndConcreteConstituent constituent, IViewModelParent parent) { _constituent = constituent; _parent = parent; }