public override void StartUp() { mSelf = this; mIsActive = true; this.BeforeVariableSet += new EventHandler <FlatRedBall.Glue.VariableSetArgs>(OnBeforeVariableSet); this.AfterVariableSet += new EventHandler <FlatRedBall.Glue.VariableSetArgs>(HandleAfterVariableSet); this.ElementLoaded += new EventHandler(OnElementLoaded); this.ResolutionChange += new Action(HandleResolutionChange); this.Update += new EventHandler(HandleUpdate); StartUpForTests(); #if !UNIT_TESTS mControl = new ScriptingControl(this); GlueViewCommands.Self.CollapsibleFormCommands.AddCollapsableForm( "Script Parsing", 80, mControl, this); mControl.ButtonClick += new EventHandler(OnDebugButtonClick); #endif }
public override void StartUp() { mSelf = this; mIsActive = true; this.BeforeVariableSet += new EventHandler<FlatRedBall.Glue.VariableSetArgs>(OnBeforeVariableSet); this.AfterVariableSet += new EventHandler<FlatRedBall.Glue.VariableSetArgs>(HandleAfterVariableSet); this.ElementLoaded += new EventHandler(OnElementLoaded); this.ResolutionChange += new Action(HandleResolutionChange); this.Update += new EventHandler(HandleUpdate); StartUpForTests(); #if !UNIT_TESTS mControl = new ScriptingControl(this); GlueViewCommands.Self.CollapsibleFormCommands.AddCollapsableForm( "Script Parsing", 80, mControl, this); mControl.ButtonClick += new EventHandler(OnDebugButtonClick); #endif }