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); }
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); }