void Page_Loaded(object sender, RoutedEventArgs e) { this.Focus(); Page.Keyhandler = new KeyHandler(); Page.Keyhandler.Attach(this); //Page.MouseHandler = new MouseHandler(); //Page.MouseHandler.Attach(this); Page.SceneLoop = new SceneLoop(); Page.SceneLoop.Attach(this.mainCanvas); view = new TankView(); view.Ended += new EventHandler(view_Ended); this.mainCanvas.Children.Add(view); }
public SceneLoopEventArgs(SceneLoop game, TimeSpan elapsed) { this.SceneLoop = game; this.ElapsedTime = elapsed; }