Harness proD API Help
EPLAN.Harness.API.DataStructures Namespace / TasksController Class
Members Example
In This Topic
    TasksController Class
    In This Topic
    Controller of tasks.
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.DataStructures.TasksController

    Syntax
    public class TasksController 
    Example
    This example shows how to perform task processing to get current state of tasks for desired tasks configuration.
    // Get controller from opened designer.
    TasksController tasks = designer.Tasks;
    
    // Select desired tasks configuration as active configuration.
    string configuration = tasks.Configurations.FirstOrDefault(c => c == "Desired configuration name");
    tasks.SelectActiveTaskConfiguration(configuration);
    
    // Perform task processing to get current state of tasks for this tasks configuration.
    tasks.TaskProcessing();
    
    // Current state of tasks.
    IEnumerable<TaskInfo> currentTasks = tasks.CurrentTasks;
    Public Properties
     NameDescription
    Public PropertyGets name of active tasks configuration.  
    Public PropertyGets list of defined tasks configurations.  
    Public PropertyGets list of current tasks.  
    Public PropertyList of customizable task configurations.  
    Top
    Public Methods
     NameDescription
    Public MethodAdd custom task.  
    Public MethodDelete selected tasks.  
    Public MethodExport all customizable task configurations to the file.  
    Public MethodImport task configurations from the file.  
    Public MethodSelect active tasks configuration.  
    Public MethodPerform task processing to get current state of tasks.  
    Top
    See Also