Beispiel #1
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();
            AppointmentDetailsView.AddGestureRecognizer(new UITapGestureRecognizer(() => AppointmentSelected?.Invoke(this, appointment)));

            AppointmentDetailsView.AddBorder(Colors.AppointmentOtherViewBorderColor, 14);
            CircleView.Layer.BorderWidth = 1;
            CircleView.Layer.BorderColor = Colors.AppointmentOtherViewCircleBorderColor.CGColor;
        }
Beispiel #2
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();
            string firstString         = "Appointment.Details.Feedback.Button".Translate();
            var    strAttributedResult = new NSMutableAttributedString();

            strAttributedResult.Append(new NSAttributedString(firstString, Fonts.GetMediumFont(14), Colors.HyperLinkButtonTextColor, underlineStyle: NSUnderlineStyle.Single));
            CancelButton.SetAttributedTitle(strAttributedResult, UIControlState.Normal);
            AppointmentDetailsView.AddGestureRecognizer(new UITapGestureRecognizer(() => AppointmentSelected?.Invoke(this, appointment)));

            AppointmentDetailsView.AddBorder(Colors.UnselectedLabelBorderColor, 14);
            CircleView.Layer.BorderWidth = 1;
            CircleView.Layer.BorderColor = Colors.UnselectedLabelBorderColor.CGColor;

            VideoCallButton.UserInteractionEnabled = true;

            if (videoCallButtonGesture == null)
            {
                videoCallButtonGesture = new UITapGestureRecognizer(VideoCallButton_Tapped);
            }
            VideoCallButton.RemoveGestureRecognizer(videoCallButtonGesture);
            VideoCallButton.AddGestureRecognizer(videoCallButtonGesture);
        }
Beispiel #3
0
        void ReleaseDesignerOutlets()
        {
            if (AppointmentDetailsView != null)
            {
                AppointmentDetailsView.Dispose();
                AppointmentDetailsView = null;
            }

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

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

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

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

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

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

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

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

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

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