void ReleaseDesignerOutlets()
        {
            if (EndTime != null)
            {
                EndTime.Dispose();
                EndTime = null;
            }

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

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

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

            if (StatusSwitch != null)
            {
                StatusSwitch.Dispose();
                StatusSwitch = null;
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (EndTime != null)
            {
                EndTime.Dispose();
                EndTime = null;
            }

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

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