public static void RunProgram(this string ProgramName, bool Wait)public void RunProgram( string ProgramName, bool Wait )
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators;namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { // Launches Notepad by calling RunProgram string programName = "notepad.exe"; programName.RunProgram( false ); } } }
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; using Community.Components; // RunProgram here /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { // Create an instance of the class and pass WealthScript as "this" Utility u = new Utility( this ); // Launches Notepad by calling RunProgram u.RunProgram( "notepad.exe", false ); } } }