public VendorInventoryWindowViewModel(IProcessService processService, IDownloadService downloadService, IMessageBoxService messageBoxService) { _processService = processService; _downloadService = downloadService; _messageBoxService = messageBoxService; SongInventories = new ObservableCollection <SongInventory>(); SelectedInventory = new SongInventory(); }
public SongInventory Map(MusicVendorInventory musicVendorInventory) { SongInventory mi = new SongInventory(); Dictionary <string, List <Song> > songMap = MapSongs(musicVendorInventory.Songs); var cat = MapCategories(musicVendorInventory.Categories, songMap); mi.Vendor = MapVendor(musicVendorInventory.Vendor); mi.Inventory = cat; mi.DateTime = DateTime.Now; return(mi); }