コード例 #1
0
ファイル: Bootstrapper.cs プロジェクト: zyh329/nbi
        /// <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);
        }
コード例 #2
0
ファイル: Bootstrapper.cs プロジェクト: Waltervondehans/NBi
        /// <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);
        }