private void Image_MouseUp(object sender, MouseButtonEventArgs e) { if (newCard != null) { NewCardWindow ncw = new NewCardWindow(newCard /*, Owner*/); App.WindowList.Add(ncw.Name, ncw); ncw.ShowDialog(); } App.WindowList.Remove(this.Name); //App.ForceClosing = false; Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.NewCardWnd = ((CardGameClient.NewCardWindow)(target)); #line 8 "..\..\..\NewCardWindow.xaml" this.NewCardWnd.ContentRendered += new System.EventHandler(this.Window_ContentRendered); #line default #line hidden return; case 2: this.NewCardPlace = ((CardGameClient.CardPlace)(target)); return; case 3: this.CardNameLabel = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }