void ReleaseDesignerOutlets() { if (AMOptionTableView != null) { AMOptionTableView.Dispose(); AMOptionTableView = null; } if (BtnClose != null) { BtnClose.Dispose(); BtnClose = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); List <ReconQuestionsKBB> reconQuestions = new List <ReconQuestionsKBB>(); foreach (var option in AppDelegate.appDelegate.afterMarketOptions.aftermarketQuestions.data) { if (option.Caption == AppDelegate.appDelegate.AMFactoryOptionSelected) { foreach (var question in option.questions) { reconQuestions.Add(question); } } } AMOptionTableView.Source = new AMFactoryOptionTVS(reconQuestions); AMOptionTableView.TableFooterView = new UIView(CoreGraphics.CGRect.Empty); AMOptionTableView.RowHeight = UITableView.AutomaticDimension; AMOptionTableView.EstimatedRowHeight = 40f; AMOptionTableView.ReloadData(); }