/// <summary> /// Sets an item to 'selected' in the database. /// </summary> public static void SetToSelected(IAPItem item) { //check if the item allows for single or multi selection, //this depends on whether the item has a deselect button bool single = item.deselectButton ? false : true; //pass arguments to DBManager and invoke select event bool changed = DBManager.SetSelected(item.productId, single); if (changed && itemSelectedEvent != null) { itemSelectedEvent(item.productId); } }