void ReleaseDesignerOutlets() { if (CalendarSwitch != null) { CalendarSwitch.Dispose(); CalendarSwitch = null; } if (CattegoryPicker != null) { CattegoryPicker.Dispose(); CattegoryPicker = null; } if (DatePicker != null) { DatePicker.Dispose(); DatePicker = null; } if (Duration != null) { Duration.Dispose(); Duration = null; } if (NotificationSwitch != null) { NotificationSwitch.Dispose(); NotificationSwitch = null; } if (Save != null) { Save.Dispose(); Save = null; } if (TaskName != null) { TaskName.Dispose(); TaskName = null; } if (TaskShortLable != null) { TaskShortLable.Dispose(); TaskShortLable = null; } }