/// <summary> /// Default Update Event Handler /// </summary> protected virtual void BaseGameControl_Update(IGameControl sender, GameControlTimedEventArgs args) { //Set focus Focus = (ParentForm.UI.ControlWithFocus == this); }
public BaseGameControl(float elapsedtime,float totaltime) { WireUpEvents(); GameControlTimedEventArgs a = new GameControlTimedEventArgs(elapsedtime,totaltime); Init(this, a); }
/// <summary> /// Default Init Event Handler /// </summary> protected virtual void BaseGameControl_Init(IGameControl sender, GameControlTimedEventArgs args) { mSourceRectangles = new Dictionary<string, Rectangle>(); if (args != null) { ElapsedTime = args.ElapsedTime; TotalTime = args.TotalTime; } }