public static void Main(string[] args) { Application.Init (); MainWindow win = new MainWindow (); win.Show (); Application.Run (); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MainWindow1 = ((SpaceInvaders.MainWindow)(target)); return; case 2: this.GameFrame = ((System.Windows.Controls.Frame)(target)); return; } this._contentLoaded = true; }