コード例 #1
0
        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;
        }
コード例 #2
0
 private void OnBlendAdded(AddOrEditBlendViewModel source, Blend blend)
 {
     Blends.Add(new BlendViewModel(blend));
 }