예제 #1
0
 /// <summary>
 /// Internal constructor for a task, used by <see cref="ScheduledTasks"/>.
 /// </summary>
 /// <param name="iTask">Instance of an ITask.</param>
 /// <param name="taskName">Name of the task.</param>
 internal Task(ITask iTask, string taskName)
 {
     this.iTask = iTask;
     if (taskName.EndsWith(".job"))
     {
         name = taskName.Substring(0, taskName.Length - 4);
     }
     else
     {
         name = taskName;
     }
     triggers    = null;
     this.Hidden = GetHiddenFileAttr();
 }
예제 #2
0
 /// <summary>
 /// Internal constructor - Only accessible through <see cref="IEnumerable.GetEnumerator()"/>.
 /// </summary>
 /// <param name="outer">Instance of a TriggerList.</param>
 internal Enumerator(TriggerList outer)
 {
     this.outer = outer;
     Reset();
 }