/// <summary> /// Makes an art work collection from the ArrayList of artwork IDs /// </summary> /// <returns></returns> private ArtWorkCollection GetArtWorkCollection(bool asc, int sortOn) { switch (sortOn) { case SORT_ON_TITLE: awc.SortByTitle(asc); break; case SORT_ON_MSRP: awc.SortByMSRP(asc); break; case SORT_ON_YEAR: awc.SortByYear(asc); break; } return(awc); }
/// <summary> /// Makes an art work collection from the ArrayList of artwork IDs /// </summary> /// <returns></returns> private ArtWorkCollection GetArtWorkCollection(bool asc, int sortOn) { ArtWorkCollection awc = new ArtWorkCollection(); awc.CreateFromArrayList(SessionHandler.GetUsersSession(SessionHandler.ArtWork)); switch (sortOn) { case SORT_ON_TITLE: awc.SortByTitle(asc); break; case SORT_ON_MSRP: awc.SortByMSRP(asc); break; case SORT_ON_YEAR: awc.SortByYear(asc); break; } return(awc); }