示例#1
0
        /// <summary>
        /// Interpret command line parameters and process their content
        /// </summary>
        /// <param name="args"></param>
        private static void ProcessCmdLine(IEnumerable <string> args, IApplicationViewModel appVM)
        {
            if (args != null)
            {
                logger.InfoFormat("TRACE Processing command line 'args' in App.ProcessCmdLine");

                foreach (string sPath in args)
                {
                    logger.InfoFormat("TRACE Processing CMD param: '{0}'", sPath);

                    // Command may not be bound yet so we do this via direct call
                    appVM.Open(sPath);
                }
            }
            else
            {
                logger.InfoFormat("TRACE There are no command line 'args' to process in App.ProcessCmdLine");
            }
        }