Ejemplo n.º 1
0
        public void Run(string taskName, string taskDescription, Action <ITaskChanges> taskAction)
        {
            var task = new Task(taskName, taskDescription, taskAction);

            TaskStarted.Raise(this, new TaskEventArgs(task));
            task.Run();
        }
Ejemplo n.º 2
0
 public virtual void OnTaskStarted(EventArgs e)
 {
     Collect.Enabled             = NScan.Enabled = false;
     CameraBox.Enabled           = false;
     BeamFlagBox.Objects.Enabled = false;
     Abort.Enabled = Pause.Enabled = true;
     Paused.Set(); // Set running/resumed.
     TaskStarted.Raise(this, e);
 }