I've tried this:
namespace NinjaTrader.Gui.NinjaScript { public class xyz: AddOnBase { protected override void OnStateChange() { if (State==State.SetDefaults) { System.Windows.Forms.MessageBox.Show("h3"); } } protected override void OnWindowCreated(Window window) { System.Windows.Forms.MessageBox.Show("h2"); } } }
Comment