Пример #1
0
        public void LaunchProcess(string name)
        {
            string methodName = "LaunchProcess";

            try
            {
                Process process = new Process();
                process.StartInfo.FileName = name;
                process.Start();
            }
            catch (ArgumentNullException e0)
            {
                _traceLogger.QueueMessage(_traceLogger.BuildMessage(_moduleName, methodName, e0.Message));
            }
            catch (InvalidOperationException e1)
            {
                _traceLogger.QueueMessage(_traceLogger.BuildMessage(_moduleName, methodName, e1.Message));
            }
            catch (System.ComponentModel.Win32Exception e2)
            {
                _traceLogger.QueueMessage(_traceLogger.BuildMessage(_moduleName, methodName, e2.Message));
            }
        }