コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (DividerView != null)
            {
                DividerView.Dispose();
                DividerView = null;
            }

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

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

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

            if (EndTimeLabel != null)
            {
                EndTimeLabel.Dispose();
                EndTimeLabel = null;
            }
        }
コード例 #2
0
        void SetDividerView(MGSplitDividerView divider)
        {
            if (divider != DividerView)
            {
                DividerView.RemoveFromSuperview();

                DividerView = divider;
                DividerView.SplitViewController = this;
                DividerView.BackgroundColor     = _defaultCornerColor;
                if (IsShowingMaster())
                {
                    LayoutSubviews();
                }
            }
        }
コード例 #3
0
        public void SetDividerStyle(MGSplitViewDividerStyle newStyle)
        {
            if (_hiddenPopoverController != null && _hiddenPopoverController.PopoverVisible)
            {
                _hiddenPopoverController.Dismiss(false);
            }

            // We don't check to see if newStyle equals _dividerStyle, because it's a meta-setting.
            // Aspects could have been changed since it was set.
            DividerStyle = newStyle;

            // Reconfigure general appearance and behaviour.
            nfloat cornerRadius = 0;

            if (DividerStyle == MGSplitViewDividerStyle.Thin)
            {
                cornerRadius = _defaultCornerRadius;
                SplitWidth   = DefaultThinWidth;
                SetAllowsDraggingDivider(false);
            }
            else if (DividerStyle == MGSplitViewDividerStyle.PaneSplitter)
            {
                cornerRadius = _panesplitterCornerRadius;
                SplitWidth   = DefaultThickWidth;
                SetAllowsDraggingDivider(true);
            }

            // Update divider and corners.
            DividerView.SetNeedsDisplay();
            if (_cornerViews != null)
            {
                foreach (MGSplitCornersView corner in _cornerViews)
                {
                    corner.CornerRadius = cornerRadius;
                }
            }

            // Layout all views.
            LayoutSubviews();
        }
コード例 #4
0
        void ReleaseDesignerOutlets()
        {
            if (BackCalcView != null)
            {
                BackCalcView.Dispose();
                BackCalcView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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