private void OnBlendUpdated(AddOrEditBlendViewModel source, Blend blend) { var blendInList = Blends.Single(b => b.ID == blend.ID); blendInList.ID = blend.ID; blendInList.Nume = blend.Nume; blendInList.Ulei1 = blend.Ulei1; blendInList.Ulei2 = blend.Ulei2; blendInList.Ulei3 = blend.Ulei3; blendInList.Cant1 = blend.Cant1; blendInList.Cant2 = blend.Cant2; blendInList.Cant3 = blend.Cant3; blendInList.Descriere = blend.Descriere; }
private void OnBlendAdded(AddOrEditBlendViewModel source, Blend blend) { Blends.Add(new BlendViewModel(blend)); }