Esempio n. 1
0
        private bool CheckTask(TicksManagerTask taskType)
        {
            if (_currentTask != null && _currentTask.Task == taskType)
            {
                return(true);
            }

            for (int i = 0; i < _taskList.Count; i++)
            {
                if (_taskList[i].Task == taskType)
                {
                    return(true);
                }
            }
            return(false);
        }
Esempio n. 2
0
 public TicksManagerProcessEventArgs(TicksManagerTask task, int total, int current) : base(task)
 {
     _total   = total;
     _current = current;
 }
Esempio n. 3
0
 public TicksManagerTaskEventArgs(TicksManagerTask task) : base()
 {
     _task = task;
 }
Esempio n. 4
0
 public AbstractTask(TicksManagerTask taskType, int priority)
 {
     _taskType = taskType;
     _priority = priority;
 }
Esempio n. 5
0
 public TaskUpdateTicks(Tick[] ticks, TicksManagerTask task, int priority) : base(task, priority)
 {
     _ticks = ticks;
 }