Exemplo n.º 1
0
 protected override void ExecuteTask()
 {
     if ((this.ConditionsTrue))
     {
         this.Then.Execute();
     }
     else
     {
         bool Executed = false;
         TaskContainerCollection ElseIfList = new TaskContainerCollection();
         ElseIfList.AddRange(this.ElseIfs);
         ElseIfList.AddRange(this.OldElseIf);
         foreach (TaskContainer Possible in ElseIfList)
         {
             if (Possible.IfDefined)
             {
                 Possible.Execute();
                 Executed = true;
                 break;
             }
         }
         if (!Executed & this.Else != null)
         {
             this.Else.Execute();
         }
     }
 }
Exemplo n.º 2
0
 public void AddRange(TaskContainerCollection items)
 {
     this.InnerList.AddRange(items);
 }
Exemplo n.º 3
0
 public TaskContainerCollection(TaskContainerCollection value)
 {
     this.InnerList.AddRange(value);
 }
Exemplo n.º 4
0
 protected override void ExecuteTask()
 {
     if ((this.ConditionsTrue))
     {
         this.Then.Execute();
     }
     else
     {
         bool Executed = false;
         TaskContainerCollection ElseIfList = new TaskContainerCollection();
         ElseIfList.AddRange(this.ElseIfs);
         ElseIfList.AddRange(this.OldElseIf);
         foreach (TaskContainer Possible in ElseIfList)
         {
             if (Possible.IfDefined)
             {
                 Possible.Execute();
                 Executed = true;
                 break;
             }
         }
         if (!Executed & this.Else != null)
         {
             this.Else.Execute();
         }
     }
 }
Exemplo n.º 5
0
 public void AddRange(TaskContainerCollection items)
 {
     this.InnerList.AddRange(items);
 }
Exemplo n.º 6
0
 public TaskContainerCollection(TaskContainerCollection value)
 {
     this.InnerList.AddRange(value);
 }