private async void DrillDown(RewardModel reward, UICollectionView collectionView) { if (reward != null) { UIStoryboard board = UIStoryboard.FromName("Rewards", null); MonthRewardsViewController ctrl = board.InstantiateViewController("RewardsViewController") as MonthRewardsViewController; ctrl.CurrentPage = RewardCollectionViewController.CurrentPage; ctrl.HeaderTitle = reward.Name; if (reward.ChildList != null) { ctrl.RewardList = reward.ChildList; } else { ctrl.CategoryID = reward.ID; } var navbarHeight = RewardCollectionViewController.NavigationController.NavigationBar.Frame.Height; var overlayRect = new CoreGraphics.CGRect(0, 0, RewardCollectionViewController.View.Frame.Width, UIScreen.MainScreen.Bounds.Height - navbarHeight); UIView overlay = Platform.AddOverlay(overlayRect, UIColor.White, true, true); await SL.Manager.GetRewardsDrilldownAsync(reward.ID, null); overlay.RemoveFromSuperview(); RewardCollectionViewController.NavigationController.PushViewController(ctrl, true); } }
public MonthRewardsTableSource(MonthRewardsViewController controller, string headerText) { _controller = controller; _headerText = headerText; }