Ejemplo n.º 1
0
        public static Process startConsole(string file, string args)
        {
            Process p;

            switch (Ground.i.consoleWinStyle)
            {
            case ProcessTools.WindowStyle_e.INVISIBLE:
                p = ProcessTools.start(file, "//-C " + args);
                break;

            case ProcessTools.WindowStyle_e.MINIMIZED:
                p = ProcessTools.start(file, args, null, ProcessTools.WindowStyle_e.MINIMIZED);
                break;

            case ProcessTools.WindowStyle_e.NORMAL:
                p = ProcessTools.start(file, args, null, ProcessTools.WindowStyle_e.NORMAL);
                break;

            default:
                throw null;
            }
            return(p);
        }