示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (buttonConfirm != null)
            {
                buttonConfirm.Dispose();
                buttonConfirm = null;
            }

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

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

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

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

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

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

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

            if (SymptonView2 != null)
            {
                SymptonView2.Dispose();
                SymptonView2 = null;
            }
        }
        private void styleView()
        {
            labelTitle.Font       = Styles.SetHelveticaBoldFont(19);
            DescriptionLabel.Font = Styles.SetHelveticaFont(19);
            setButtonRed(false);

            SymptonLabel1.Font = Styles.SetHelveticaBoldFont(17);
            SymptonLabel2.Font = Styles.SetHelveticaBoldFont(17);

            SymptonView1.setBorderShadow();
            SymptonView2.setBorderShadow();

            selectSympton(SymptonView1, false);
            selectSympton(SymptonView2, false);
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.
            indicator.Set(2, 1);
            buttonConfirm.Layer.CornerRadius = 4;
            buttonConfirm.TouchUpInside     += (o, e) => NoSymptomsClicked?.Invoke(this, new bool[] { fiebre, sintomas });

            UITapGestureRecognizer gestureRecognizerSympton1 = new UITapGestureRecognizer(() => selectSympton(SymptonView1));

            SymptonView1.AddGestureRecognizer(gestureRecognizerSympton1);
            UITapGestureRecognizer gestureRecognizerSympton2 = new UITapGestureRecognizer(() => selectSympton(SymptonView2));

            SymptonView2.AddGestureRecognizer(gestureRecognizerSympton2);

            applyTraslations();
            styleView();
        }