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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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