fyiReporting.RdlDesign.RdlDesigner.menuToolsStartProcess C# (CSharp) Method

menuToolsStartProcess() private method

private menuToolsStartProcess ( bool bMsg ) : void
bMsg bool
return void
        internal void menuToolsStartProcess(bool bMsg)
        {
            if (_ServerProcess != null && !_ServerProcess.HasExited)
                return;

            string pswd = GetPassword();

            try
            {
                string filename = string.Format("{0}{1}",
                    AppDomain.CurrentDomain.BaseDirectory, "RdlDesktop.exe");

                ProcessStartInfo psi = new ProcessStartInfo(filename);
                if (pswd != null)
                    psi.Arguments = "/p" + pswd;
                psi.RedirectStandardError = psi.RedirectStandardInput = psi.RedirectStandardOutput = true;
                psi.UseShellExecute = false;
                //psi.WindowStyle = ProcessWindowStyle.Hidden;
                psi.CreateNoWindow = true;
                _ServerProcess = Process.Start(psi);
            }
            catch (Exception ex)
            {
                if (bMsg)
                    MessageBox.Show(ex.Message, Strings.RdlDesigner_Show_UnableStartDesktop);
            }

            return;
        }
RdlDesigner