Exemple #1
0
        /// <summary>
        /// Handles console started event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">Event data.</param>
        /// <exception cref="ArgumentNullException">e is null.</exception>
        protected void OnConsoleStarted(object sender,
                                        ConsoleStartedEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e",
                                                Resources.ArgumentNullException);
            }

            PrintApplicationInfo();
            if (ProcessCommandLineArguments(e.Args))
            {
                RunApplication();
            }
            else
            {
                _consoleView.EchoReadLine(String.Empty);
            }
        }
        /// <summary>
        /// Handles console started event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">Event data.</param>
        /// <exception cref="ArgumentNullException">e is null.</exception>
        protected void OnConsoleStarted(object sender, 
            ConsoleStartedEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e",
                                                Resources.ArgumentNullException);
            }

            PrintApplicationInfo();
            if (ProcessCommandLineArguments(e.Args))
            {
                RunApplication();
            }
            else
            {
                _consoleView.EchoReadLine(String.Empty);
            }
        }