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; } }
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; } }