public static void SetClean(IList lstSelectedItem) { foreach (ThumbItem item in lstSelectedItem) { switch (item.EType) { case EntityType.Apps: Apps objApps = Dal.GetInstance.GetApps(item.Id); AppServices.Clean(objApps); Update(objApps); break; case EntityType.Books: Books objBooks = Dal.GetInstance.GetBooks(item.Id); BookServices.Clean(objBooks); Update(objBooks); break; case EntityType.Games: Gamez objGamez = Dal.GetInstance.GetGames(item.Id); GameServices.Clean(objGamez); Update(objGamez); break; case EntityType.Movie: Movie objMovie = Dal.GetInstance.GetMovies(item.Id); MovieServices.Clean(objMovie); Update(objMovie); break; case EntityType.Music: Music objMusic = Dal.GetInstance.GetMusics(item.Id); MusicServices.Clean(objMusic); Update(objMusic); break; case EntityType.Nds: Nds objNds = Dal.GetInstance.GetNdss(item.Id); NdsServices.Clean(objNds); Update(objNds); break; case EntityType.Series: SeriesSeason objSeriesSeason = Dal.GetInstance.GetSeries_Seasons(item.Id); SerieServices.Clean(objSeriesSeason); Update(objSeriesSeason); break; case EntityType.XXX: XXX objXxx = Dal.GetInstance.GetXxXs(item.Id); XxxServices.Clean(objXxx); Update(objXxx); break; } } }
public static void RefreshSmallCovers() { AppServices.RefreshSmallCover(); BookServices.RefreshSmallCover(); GameServices.RefreshSmallCover(); MovieServices.RefreshSmallCover(); MusicServices.RefreshSmallCover(); NdsServices.RefreshSmallCover(); SerieServices.RefreshSmallCover(); XxxServices.RefreshSmallCover(); }
public static void DeleteSelectedListBoxItem(IList lstSelectedItems) { foreach (ListBoxItem item in lstSelectedItems) { IMyCollectionsData data = item.DataContext as IMyCollectionsData; if (data != null) { switch (data.ObjectType) { case EntityType.Apps: AppServices.Delete(data.Id); break; case EntityType.Artist: ArtistServices.Delete(data.Id); break; case EntityType.Books: BookServices.Delete(data.Id); break; case EntityType.Games: GameServices.Delete(data.Id); break; case EntityType.Movie: MovieServices.Delete(data.Id); break; case EntityType.Music: MusicServices.Delete(data.Id); break; case EntityType.Nds: NdsServices.Delete(data.Id); break; case EntityType.Series: SerieServices.Delete(data.Id); break; case EntityType.XXX: XxxServices.Delete(data.Id); break; } } } }
public static void DeleteSelected(IList lstSelectedItems) { foreach (ThumbItem item in lstSelectedItems) { switch (item.EType) { case EntityType.Apps: AppServices.Delete(item.Id); break; case EntityType.Artist: ArtistServices.Delete(item.Id); break; case EntityType.Books: BookServices.Delete(item.Id); break; case EntityType.Games: GameServices.Delete(item.Id); break; case EntityType.Movie: MovieServices.Delete(item.Id); break; case EntityType.Music: MusicServices.Delete(item.Id); break; case EntityType.Nds: NdsServices.Delete(item.Id); break; case EntityType.Series: SerieServices.Delete(item.Id); break; case EntityType.XXX: XxxServices.Delete(item.Id); break; } } }