Пример #1
0
        void addConstituent()
        {
            var constit = new CarbonMaterials.CementAndConcreteConstituent
            {
                Material   = _cement.AllConstituents["Clinker"],
                Proportion = 0
            };

            _cement.Constituents.Add(constit);
            _constituents.Add(new ConstituentVM(constit, this));
            RaisePropertyChanged(nameof(TotalCarbon));
            RaisePropertyChanged(nameof(TotalProportion));
        }
Пример #2
0
 public ConstituentVM(CarbonMaterials.CementAndConcreteConstituent constituent, IViewModelParent parent)
 {
     _constituent = constituent;
     _parent      = parent;
 }