Пример #1
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

            IsAccessibilityElement = true;
            AccessibilityTraits    = UIAccessibilityTrait.Button;
            AccessibilityHint      = Resources.TimeEntryRowAccessibilityHint;

            DescriptionFadeView.FadeRight       = true;
            ProjectTaskClientFadeView.FadeRight = true;

            TimeLabel.Font = TimeLabel.Font.GetMonospacedDigitFont();

            projectTaskClientToAttributedString = new ProjectTaskClientToAttributedString(
                ProjectTaskClientLabel.Font.CapHeight,
                ColorAssets.Text3
                );

            GroupSizeBackground.Layer.CornerRadius = 14;

            ContinueImageView.SetTemplateColor(ColorAssets.Text4);

            this.InsertSeparator();
        }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (AddDescriptionLabel != null)
            {
                AddDescriptionLabel.Dispose();
                AddDescriptionLabel = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

            if (UnsyncedImageView != null)
            {
                UnsyncedImageView.Dispose();
                UnsyncedImageView = null;
            }
        }
Пример #3
0
        void ReleaseDesignerOutlets()
        {
            if (AddDescriptionLabel != null)
            {
                AddDescriptionLabel.Dispose();
                AddDescriptionLabel = null;
            }

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

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

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

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

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

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

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

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

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

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