コード例 #1
0
 public VendorInventoryWindowViewModel(IProcessService processService, IDownloadService downloadService, IMessageBoxService messageBoxService)
 {
     _processService    = processService;
     _downloadService   = downloadService;
     _messageBoxService = messageBoxService;
     SongInventories    = new ObservableCollection <SongInventory>();
     SelectedInventory  = new SongInventory();
 }
コード例 #2
0
        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);
        }