Exemplo n.º 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();


            generic   = new UIToolbar(new CoreGraphics.CGRect(new nfloat(0.0f), new nfloat(0.0f), this.View.Frame.Size.Width, new nfloat(44.0f))); 
 generic.TintColor = UIColor.White; 
 generic.BarStyle = UIBarStyle.Black; 
 generic.Translucent = true;
            myButtong = new UIBarButtonItem("Importance Level (1 - 5): ", 
 UIBarButtonItemStyle.Bordered, AddNull); 
 generic.Items = new UIBarButtonItem[] { 
 myButtong, 

          new UIBarButtonItem(UIBarButtonSystemItem.FlexibleSpace), 
            new UIBarButtonItem(UIBarButtonSystemItem.Done, delegate
            {
                    
 ImportanceTextBox.ResignFirstResponder(); 

                }) 
 }; 
 ImportanceTextBox.KeyboardAppearance = UIKeyboardAppearance.Dark; 
 ImportanceTextBox.InputAccessoryView = generic; 




            View.BackgroundColor = UIColor.FromPatternImage(UIImage.FromFile("Background6.png"));

            counter = 0;
            OLDM    = new OptionsListDataModel(TitleLabel);
            //counter = OLDM.SetData(counter);
            //**OptionsList.Model = OLDM;
            ProgressBar.Progress = 0.1F;

            BackButton.Hidden          = true;
            ResultsView.Hidden         = true;
            ResultsTitleLabel.Hidden   = true;
            ShowMoreButton.Hidden      = true;
            ShowMyDetailsButton.Hidden = true;
            StartOverButton.Hidden     = true;
            ShowMoreLabel.Hidden       = true;
            PutterSpecsLabel.Hidden    = true;

            PlayPrefLabel.Hidden  = true;
            PlayErrorLabel.Hidden = true;

            TitleLabel.Text = TitleNames[counter];

            ImportanceTextBox.ShouldReturn = delegate {
                ImportanceTextBox.ResignFirstResponder();
                return(true);
            };
            // Perform any additional setup after loading the view, typically from a nib.
        }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (AILogo != null)
            {
                AILogo.Dispose();
                AILogo = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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