internal ObservableCollection <Musiqnfo> GetMusiqInfo() { var random = new Random(); var musiqInfo = new ObservableCollection <Musiqnfo>(); Assembly assembly = typeof(Selection).GetTypeInfo().Assembly; for (int i = 0; i < SongsNames.Count(); i++) { var info = new Musiqnfo() { SongTitle = SongsNames[i], SongAuther = SongAuthers[i], SongSize = random.Next(50, 600).ToString() + "." + random.Next(1, 10) / 2 + "KB", #if COMMONSB SongThumbnail = ImageSource.FromResource("SampleBrowser.Icons.SongThumbnail.png", assembly), SelectedImage = ImageSource.FromResource("SampleBrowser.Icons.Selected.png", assembly), NotSelectedImage = ImageSource.FromResource("SampleBrowser.Icons.NotSelected.png", assembly), #else SongThumbnail = ImageSource.FromResource("SampleBrowser.SfListView.Icons.SongThumbnail.png", assembly), SelectedImage = ImageSource.FromResource("SampleBrowser.SfListView.Icons.Selected.png", assembly), NotSelectedImage = ImageSource.FromResource("SampleBrowser.SfListView.Icons.NotSelected.png", assembly), #endif }; musiqInfo.Add(info); } return(musiqInfo); }
internal ObservableCollection <Musiqnfo> GetMusiqInfo() { var random = new Random(); var musiqInfo = new ObservableCollection <Musiqnfo>(); for (int i = 0; i < SongsNames.Count(); i++) { var info = new Musiqnfo() { SongTitle = SongsNames[i], SongAuther = SongAuthers[i], SongSize = random.Next(50, 600).ToString() + "." + random.Next(1, 10) / 2 + "KB", }; musiqInfo.Add(info); } return(musiqInfo); }