public override void Loading()
        {
            _stateMachine = new ScheduleStates();
            _synchronizationContext = SynchronizationContext.Current;

            VixenSystem.Logs.AddLog(new SchedulerLog());

            foreach(ScheduledItem scheduledItem in _data.ScheduledItems) {
                try {
                    _AddScheduledItemToStateMachine(scheduledItem);
                } catch(Exception ex) {
                    VixenSystem.Logging.SimpleSchedule("Could not add item '" + scheduledItem.ItemFilePath + "'; " + ex.Message + ".");
                }
            }

            _AddApplicationMenu();
            _SetSchedulerEnableState(_data.IsEnabled);
        }
        public override void Loading()
        {
            _stateMachine           = new ScheduleStates();
            _synchronizationContext = SynchronizationContext.Current;


            foreach (ScheduledItem scheduledItem in _data.ScheduledItems)
            {
                try {
                    _AddScheduledItemToStateMachine(scheduledItem);
                }
                catch (Exception ex) {
                    Logging.ErrorException("Could not add item '" + scheduledItem.ItemFilePath + "'; " + ex.Message + ".", ex);
                }
            }

            _AddApplicationMenu();
            _SetSchedulerEnableState(_data.IsEnabled);
        }
        public override void Loading()
        {
            _stateMachine = new ScheduleStates();

            try
            {
                foreach (ScheduledItem scheduledItem in _data.ScheduledItems)
                {
                    _AddScheduledItemToStateMachine(scheduledItem);
                }
            }
            catch (Exception ex)
            {
                int x = 0;
            }

            _AddApplicationMenu();
            _SetSchedulerEnableState(_data.IsEnabled);
            _synchronizationContext = SynchronizationContext.Current;
            VixenSystem.Logs.AddLog(new SchedulerLog());
        }