public GraphicsTimerTask SubscribeGraphicsTimerTask(
     object uniqueName,
     TaskIntervalPlan planName,
     int intervalMs,
     EventHandler<GraphicsTimerTaskEventArgs> tickhandler)
 {
     GraphicsTimerTask existingTask;
     if (!registeredTasks.TryGetValue(uniqueName, out existingTask))
     {
         existingTask = new GraphicsTimerTask(this.rootgfx, planName, uniqueName, intervalMs, tickhandler);
         registeredTasks.Add(uniqueName, existingTask);
         switch (planName)
         {
             case TaskIntervalPlan.CaretBlink:
                 {
                     caretIntervalTaskList.Add(existingTask);
                 }
                 break;
             default:
                 {
                     fastIntervalTaskList.Add(existingTask);
                 }
                 break;
         }
     }
     return existingTask;
 }
Beispiel #2
0
        public GraphicsTimerTask SubscribeGraphicsTimerTask(
            object uniqueName,
            TaskIntervalPlan planName,
            int intervalMs,
            EventHandler <GraphicsTimerTaskEventArgs> tickhandler)
        {
            GraphicsTimerTask existingTask;

            if (!registeredTasks.TryGetValue(uniqueName, out existingTask))
            {
                existingTask = new GraphicsTimerTask(this.rootgfx, planName, uniqueName, intervalMs, tickhandler);
                registeredTasks.Add(uniqueName, existingTask);
                switch (planName)
                {
                case TaskIntervalPlan.CaretBlink:
                {
                    caretIntervalTaskList.Add(existingTask);
                }
                break;

                default:
                {
                    fastIntervalTaskList.Add(existingTask);
                }
                break;
                }
            }
            return(existingTask);
        }
Beispiel #3
0
 //-------------------------------------------------------------------------------
 public override GraphicsTimerTask SubscribeGraphicsIntervalTask(
     object uniqueName,
     TaskIntervalPlan planName,
     int intervalMs,
     EventHandler <GraphicsTimerTaskEventArgs> tickhandler)
 {
     return(this.graphicTimerTaskMan.SubscribeGraphicsTimerTask(uniqueName, planName, intervalMs, tickhandler));
 }
Beispiel #4
0
 //
 public GraphicsTimerTask(RootGraphic rootgfx,
                          TaskIntervalPlan planName,
                          object uniqueName,
                          int internvalMs,
                          EventHandler <GraphicsTimerTaskEventArgs> tickHandler)
 {
     this.PlanName = planName;
     _uniqueName   = uniqueName;
     _rootgfx      = rootgfx;
     _tickHandler  = tickHandler;
 }
 public GraphicsTimerTask(RootGraphic rootgfx,
     TaskIntervalPlan planName,
     object uniqueName,
     int internvalMs,
     EventHandler<GraphicsTimerTaskEventArgs> tickHandler)
 {
     this.PlanName = planName;
     this.uniqueName = uniqueName;
     this.enable = false;
     this.rootgfx = rootgfx;
     this.tickHandler = tickHandler;
 }
Beispiel #6
0
 public abstract GraphicsTimerTask SubscribeGraphicsIntervalTask(
     object uniqueName,
     TaskIntervalPlan planName,
     int intervalMs,
     EventHandler <GraphicsTimerTaskEventArgs> tickhandler);
Beispiel #7
0
 public abstract GraphicsTimerTask SubscribeGraphicsIntervalTask(
     object uniqueName,
     TaskIntervalPlan planName,
     int intervalMs,
     EventHandler<GraphicsTimerTaskEventArgs> tickhandler);
 //-------------------------------------------------------------------------------
 public override GraphicsTimerTask SubscribeGraphicsIntervalTask(
     object uniqueName,
     TaskIntervalPlan planName,
     int intervalMs,
     EventHandler<GraphicsTimerTaskEventArgs> tickhandler)
 {
     return this.graphicTimerTaskMan.SubscribeGraphicsTimerTask(uniqueName, planName, intervalMs, tickhandler);
 }