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)); }
public ConstituentVM(CarbonMaterials.CementAndConcreteConstituent constituent, IViewModelParent parent) { _constituent = constituent; _parent = parent; }