void ReleaseDesignerOutlets()
        {
            if (NextButton != null)
            {
                NextButton.Dispose();
                NextButton = null;
            }

            if (PilotSwitch != null)
            {
                PilotSwitch.Dispose();
                PilotSwitch = null;
            }

            if (RatingLabel != null)
            {
                RatingLabel.Dispose();
                RatingLabel = null;
            }

            if (RatingPickerView != null)
            {
                RatingPickerView.Dispose();
                RatingPickerView = null;
            }

            if (TypeLabel != null)
            {
                TypeLabel.Dispose();
                TypeLabel = null;
            }

            if (TypePickerView != null)
            {
                TypePickerView.Dispose();
                TypePickerView = null;
            }
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            UIImageView background = new UIImageView();

//assign our image file to the UIImageView
            background.Image = UIImage.FromBundle("new_home_bg1");

            //assign the UIImageView as the background view of the table
            this.TableView.BackgroundView = background;

            //set the textbox background to light gray
            this.TableView.BackgroundColor = UIColor.LightGray;

            //set the background of each table cell to clear
            foreach (var cell in this.TableView.VisibleCells)

            {
                cell.BackgroundColor = UIColor.Clear;
                cell.SelectionStyle  = UITableViewCellSelectionStyle.None;
            }

            var statusBarHeight = UIApplication.SharedApplication.StatusBarFrame.Height;

            MultiStepProcessHorizontalViewController parentViewController = this.ParentViewController as MultiStepProcessHorizontalViewController;
            var navigationController = parentViewController.ContainerViewController.NavigationController;
            var navBarHeight         = navigationController.NavigationBar.Bounds.Height;

            TableView.ContentInset = new UIEdgeInsets(statusBarHeight + navBarHeight, 0, 50, 0);

            TypeLabel.Alpha   = 0f;
            RatingLabel.Alpha = 0f;

            TypePickerView.Alpha   = 0f;
            RatingPickerView.Alpha = 0f;

            TypePickerView.Model   = new PilotTypeModel(this);
            RatingPickerView.Model = new RatingModel();

            if (Settings.IsPilot)
            {
                PilotSwitch.On       = true;
                TypeLabel.Alpha      = 1f;
                TypePickerView.Alpha = 1f;

                int statusIndex = Settings.LocationResponse.AreYouAPilot.IndexOf(Settings.LocationResponse.AreYouAPilot.FirstOrDefault(row => row.PilotStatusId == Settings.PilotStatusId));
                TypePickerView.Select(statusIndex, 0, true);
                TypePickerView.Model.Selected(TypePickerView, statusIndex, 0);



                int ratingIndex = Settings.LocationResponse.PilotRating.IndexOf(Settings.LocationResponse.PilotRating.FirstOrDefault(row => row.PilotTypeId == Settings.PilotTypeId));
                RatingPickerView.Select(ratingIndex, 0, true);
                RatingPickerView.Model.Selected(RatingPickerView, ratingIndex, 0);
            }
            else
            {
                PilotSwitch.On       = false;
                TypeLabel.Alpha      = 0f;
                TypePickerView.Alpha = 0f;
            }
        }