Exemplo n.º 1
0
        public void Launch(Node selectedNode, MacroExpander macros)
        {
            ProcessStartInfo info = new ProcessStartInfo();
            macros.Target = selectedNode as File;

            info.FileName = Program;
            info.Arguments = macros.Expand(Arguments);

            Fork(info);
        }
Exemplo n.º 2
0
Arquivo: File.cs Projeto: faboo/faux
        public void Launch(MacroExpander macros)
        {
            ProcessStartInfo info = new ProcessStartInfo();
            macros.Target = this;

            if (Type != null && Type.Launcher != null)
            {
                if (String.IsNullOrWhiteSpace(Type.LauncherArgs))
                    info.Arguments = RealPath;
                else
                    info.Arguments = macros.Expand(Type.LauncherArgs);
                info.FileName = Type.Launcher;
            }
            else
            {
                info.FileName = RealPath;
            }

            Fork(info);
        }