Пример #1
0
 /// <summary>
 /// Ends a while statement
 /// </summary>
 /// <param name="WhileCommand">While statement to end</param>
 public virtual void EndWhile(While WhileCommand)
 {
     SetCurrentMethod();
     EndWhile TempCommand = new EndWhile(WhileCommand);
     TempCommand.Setup();
     Commands.Add(TempCommand);
 }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="WhileCommand">While command</param>
 public EndWhile(While WhileCommand)
     : base()
 {
     this.WhileCommand = WhileCommand;
 }
Пример #3
0
 /// <summary>
 /// Creates a while statement
 /// </summary>
 /// <param name="LeftHandSide">Left hand side variable</param>
 /// <param name="ComparisonType">Comparison type</param>
 /// <param name="RightHandSide">Right hand side variable</param>
 /// <returns>The while object</returns>
 public virtual While While(VariableBase LeftHandSide, Enums.Comparison ComparisonType, VariableBase RightHandSide)
 {
     SetCurrentMethod();
     While TempCommand = new While(ComparisonType, LeftHandSide, RightHandSide);
     TempCommand.Setup();
     Commands.Add(TempCommand);
     return TempCommand;
 }