void ReleaseDesignerOutlets() { if (FirstHourSwitch != null) { FirstHourSwitch.Dispose(); FirstHourSwitch = null; } if (RemindSwitch != null) { RemindSwitch.Dispose(); RemindSwitch = null; } if (SecondHourSwitch != null) { SecondHourSwitch.Dispose(); SecondHourSwitch = null; } }