Exemplo n.º 1
0
 static void Main(string[] args)
 {
     var arguments = new CommandLineArgs(args);
     var printTime = new PrintTimeCommand();
     var timer = new TimerCommand(arguments);
     var commands = new ICommand[] { printTime, timer };
     new Program(arguments, commands).Run();
 }
Exemplo n.º 2
0
 public Program(CommandLineArgs arguments, TextWriter writer, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.writer = writer;
     this.commands = commands;
 }
Exemplo n.º 3
0
 public Program(CommandLineArgs arguments, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.commands = commands;
 }
Exemplo n.º 4
0
 public Program(CommandLineArgs arguments, TextWriter tx, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.tx = tx;
     this.commands = commands;
 }
Exemplo n.º 5
0
 public Program(CommandLineArgs arguments, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.commands  = commands;
 }
Exemplo n.º 6
0
 public Program(CommandLineArgs arguments, TextWriter outputStream, ICommand[] commands)
 {
     this.arguments = arguments;
     OutputStream = outputStream;
     this.commands = commands;
 }