void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.cursosWindows = ((Ejercicio1.WindowCursos)(target)); return; case 2: this.cursosLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.cursosDataGrid = ((System.Windows.Controls.DataGrid)(target)); #line 12 "..\..\WindowCursos.xaml" this.cursosDataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cursosDataGrid_SelectionChanged); #line default #line hidden return; } this._contentLoaded = true; }
private void asignarButton_Click(object sender, RoutedEventArgs e) { WindowCursos windowCursos = new WindowCursos(cursosDataGrid); windowCursos.Show(); }