Example #1
0
        public MixViewModel LookupMix(MixModel mix)
        {
            if (MixLookupMap.ContainsKey(mix.MixId))
            {
                return(MixLookupMap[mix.MixId]);
            }
            else
            {
                MixViewModel newViewModel = new MixViewModel(mix);

                MixLookupMap.Add(newViewModel.MixId, newViewModel);
                MixCollection.Add(newViewModel);
                return(newViewModel);
            }
        }
Example #2
0
        internal void DeleteMix(MixViewModel mix)
        {
            mix.IsBeingDeleted = true;

            LibraryModel.Current.DeleteMix(mix.MixId);
        }