void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.GameWindow = ((WPF.Window1)(target)); return; case 2: this.Grid1 = ((System.Windows.Controls.Grid)(target)); return; } this._contentLoaded = true; }
public void Test() { Window1 w = new WPF.Window1(); Application.ShowModalWindow(w); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((WPF.Window1)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.grd = ((System.Windows.Controls.DataGrid)(target)); return; } this._contentLoaded = true; }