示例#1
0
 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;
 }
示例#2
0
 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));
     }
 }
示例#3
0
 public ConstituentVM(CarbonMaterials.CementAndConcreteConstituent constituent, IViewModelParent parent)
 {
     _constituent = constituent;
     _parent      = parent;
 }