public MapCCodeModel(RegistrationProfileViewController owner)
 {
     mapCodeNames = new List <Tuple <string, string> >();
     mapCodeNames.Add(new Tuple <string, string>("Select", "Select"));
     mapCodeNames.Add(new Tuple <string, string>("USA", "US"));
     mapCodeNames.Add(new Tuple <string, string>("Canada", "CA"));
     mapCodeNames.Add(new Tuple <string, string>("World", "WO"));
     Owner = owner;
 }
 public LocationsModel(RegistrationProfileViewController owner)
 {
     Owner = owner;
 }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();


            CollectionView.RegisterClassForCell(typeof(ClassificationCell), classificationCellID);
            // CollectionView.RegisterClassForSupplementaryView(typeof(Header), UICollectionElementKindSection.Header, headerId);

            CollectionView.RegisterClassForSupplementaryView(typeof(Header), UICollectionElementKindSection.Header, headerId);
            CollectionView.ShowsHorizontalScrollIndicator = false;

            UIButton nextButton = new UIButton();

            nextButton.SetTitle("Next", UIControlState.Normal);
            nextButton.BackgroundColor = UIColor.Green;

            UIButton cancelButton = new UIButton();

            cancelButton.SetTitle("Finish", UIControlState.Normal);
            cancelButton.BackgroundColor = UIColor.Green;

            CGPoint point2 = new CGPoint((UIScreen.MainScreen.Bounds.Width / 2) - 200, UIScreen.MainScreen.Bounds.Height - 120);
            var     frame2 = new CGRect(point2, new CGSize(100, 50));

            cancelButton.Frame = frame2;
            cancelButton.Font  = UIFont.BoldSystemFontOfSize(22);


            CGPoint point = new CGPoint((UIScreen.MainScreen.Bounds.Width / 2) + 100, UIScreen.MainScreen.Bounds.Height - 120);
            var     frame = new CGRect(point, new CGSize(100, 50));

            nextButton.Frame = frame;
            nextButton.Font  = UIFont.BoldSystemFontOfSize(22);

            nextButton.TouchUpInside += (sender, e) =>
            {
                if (Settings.IsRegistered)
                {
                    RegistrationProfileViewController myInterestsVC = (RegistrationProfileViewController)UIStoryboard.FromName(UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad ? "Main_ipad" : "Main", null).InstantiateViewController("MyProfileViewController");

                    //this.Storyboard.InstantiateViewController("MyProfileViewController") as RegistrationProfileViewController;

                    PresentModalViewController(myInterestsVC, true);

                    return;
                }

                RegistrationStepTwo stepTwoVC = (RegistrationStepTwo)this.Storyboard.InstantiateViewController("RegistrationStepTwo");
                this.ShowViewController(stepTwoVC, this);
            };

            cancelButton.TouchUpInside += (sender, e) =>
            {
                this.DismissViewController(true, null);
            };

            View.Add(nextButton);
            if (Settings.IsRegistered)
            {
                View.Add(cancelButton);
            }

            this.CollectionView.BackgroundColor = UIColor.Gray;
        }