예제 #1
0
        void ReleaseDesignerOutlets()
        {
            if (EditButton != null)
            {
                EditButton.Dispose();
                EditButton = null;
            }

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

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

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

            if (ManageChildrenButton != null)
            {
                ManageChildrenButton.Dispose();
                ManageChildrenButton = null;
            }
        }
예제 #2
0
        void ReleaseDesignerOutlets()
        {
            if (ChildTease != null)
            {
                ChildTease.Dispose();
                ChildTease = null;
            }

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

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

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

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