private void btnNovaJanela_onClick(object sender, RoutedEventArgs e) { Window wnd = new WndEditor(); wnd.Title = "Janela_" + janelaIndex.ToString(); wnd.Owner = this; addWindow(wnd); wnd.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.owndEditor = ((SingleInstance.WndEditor)(target)); #line 8 "..\..\WndEditor.xaml" this.owndEditor.Closed += new System.EventHandler(this.owndEditor_onClosed); #line default #line hidden return; case 2: this.txtEditor = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }