void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.stage = ((System.Windows.Media.ImageBrush)(target)); return; case 2: this.plane = ((twoDTDS.Engine.PlayArea)(target)); return; case 3: this.Bt_Restart = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\..\Game\InGamePlane.xaml" this.Bt_Restart.Click += new System.Windows.RoutedEventHandler(this.Bt_Restart_Click); #line default #line hidden return; } this._contentLoaded = true; }
/*================================ Map ==============================*/ public Map(PlayArea Plane) { this.Plane = Plane; Width = Plane.ActualWidth; Height = Plane.ActualHeight; }