Ejemplo n.º 1
0
 private void GetDataAccordingToCurrentSortState()
 {
     // Are the items shown grouped or just in item order
     if (SortOrderHandler.CurrentOrder == ItemSort.SortState.Grouped)
     {
         WrappedView.Adapter = new GroupItemAdapter(Context, ListingController.GetGroupsAndItems());
     }
     else
     {
         WrappedView.Adapter = new ItemAdapter(Context, ListingController.GetItems(SortOrderHandler.CurrentOrder == ItemSort.SortState.Alphabetic));
     }
 }