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

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

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

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

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

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