private void AddHeadsetGesture() { HeadsetIdTableCell.Accessory = UITableViewCellAccessory.DisclosureIndicator; HeadsetIdTableCell.AddGestureRecognizer(new UITapGestureRecognizer(() => { SetModelData(); var vc = Storyboard.InstantiateViewController("HeadsetTableSelectionController") as HeadsetTableSelectionController; vc.SetDataSource(new HeaderTableViewSource(Headsets, _player.HeadsetId, this)); NavigationController.PushViewController(vc, true); })); }
void ReleaseDesignerOutlets() { if (FanTeam != null) { FanTeam.Dispose(); FanTeam = null; } if (HeadsetId != null) { HeadsetId.Dispose(); HeadsetId = null; } if (HeadsetIdTableCell != null) { HeadsetIdTableCell.Dispose(); HeadsetIdTableCell = null; } if (HeadsetType != null) { HeadsetType.Dispose(); HeadsetType = null; } if (InGameToggle != null) { InGameToggle.Dispose(); InGameToggle = null; } if (PlayerId != null) { PlayerId.Dispose(); PlayerId = null; } if (PlayerIdCell != null) { PlayerIdCell.Dispose(); PlayerIdCell = null; } if (PlayerName != null) { PlayerName.Dispose(); PlayerName = null; } }