示例#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();
 }
示例#2
0
 public Program(CommandLineArgs arguments, TextWriter writer, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.writer = writer;
     this.commands = commands;
 }
示例#3
0
 public Program(CommandLineArgs arguments, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.commands = commands;
 }
示例#4
0
 public Program(CommandLineArgs arguments, TextWriter tx, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.tx = tx;
     this.commands = commands;
 }
示例#5
0
 public Program(CommandLineArgs arguments, params ICommand[] commands)
 {
     this.arguments = arguments;
     this.commands  = commands;
 }
示例#6
0
 public Program(CommandLineArgs arguments, TextWriter outputStream, ICommand[] commands)
 {
     this.arguments = arguments;
     OutputStream = outputStream;
     this.commands = commands;
 }