/// <summary> /// Boots the application. /// </summary> /// <param name="args"> /// Parameters for the application startup. /// </param> public void Boot(params string[] args) { var masterView = new TestSuiteView(); runnerConfigView = new RunnerConfigView(); if (args != null && args.Length != 0) { var macroToExecute = args[0]; ((PlayMacroCommand)masterView.MacroPresenter.PlayMacroCommand).Execute(macroToExecute); } else Application.Run(masterView); }
/// <summary> /// Boots the application. /// </summary> /// <param name="args"> /// Parameters for the application startup. /// </param> public void Boot(params string[] args) { var masterView = new TestSuiteView(); runnerConfigView = new RunnerConfigView(); if (args != null && args.Length != 0) { var macroToExecute = args[0]; //quiet mode? var quiet = false; if (args.Length > 1 && (args[1].ToLower() == "-quiet" || args[1].ToLower() == "-q")) quiet = true; ((PlayMacroCommand)masterView.MacroPresenter.PlayMacroCommand).Execute(macroToExecute, quiet); } else Application.Run(masterView); }