public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { RewardsTableView rewardsTable = tableView as RewardsTableView; if (rewardsTable != null) { var list = SL.RewardList; RewardModel rewardCategory = list != null ? list[indexPath.Row] : null; if (rewardCategory != null) { DrillDown(rewardCategory); } //DrillDown(rewardCategory); //SL.Manager.GetRewardsDrilldownAsync(rewardCategory.ID, DrillDown); } }
void ReleaseDesignerOutlets() { if (AllRewardsButton != null) { AllRewardsButton.Dispose(); AllRewardsButton = null; } if (AreaCollection != null) { AreaCollection.Dispose(); AreaCollection = null; } if (AreaCollectionHeight != null) { AreaCollectionHeight.Dispose(); AreaCollectionHeight = null; } if (AviableRewardsButton != null) { AviableRewardsButton.Dispose(); AviableRewardsButton = null; } if (ClaimedButton != null) { ClaimedButton.Dispose(); ClaimedButton = null; } if (RewardsTableView != null) { RewardsTableView.Dispose(); RewardsTableView = null; } if (tabBarView != null) { tabBarView.Dispose(); tabBarView = null; } }
//private bool _didReloadDataRewards; public override void ViewDidLoad() { tabBarView.Hidden = true; base.AreaCollectionOutlet = AreaCollection; base.AreaCollectionHeightOutlet = AreaCollectionHeight; base.ViewDidLoad(); var iv = new UIImageView(UIImage.FromBundle("Background")); iv.ContentMode = UIViewContentMode.ScaleToFill; RewardsTableView.BackgroundView = iv; AllRewardsButton.SetTitle("All Rewards"); AviableRewardsButton.SetTitle("Aviable"); ClaimedButton.SetTitle("Claimed"); // Perform any additional setup after loading the view, typically from a nib. RewardsTableView.SeparatorStyle = UITableViewCellSeparatorStyle.None; RewardsTableView.RegisterNibForCellReuse(MonthRewardsTableCell.Nib, MonthRewardsTableCell.Key); ChangeSelectedButton(CurrentPage); }