private void botonModificar_Click(object sender, RoutedEventArgs e) { Carrera carrera; if (comboBoxCarrera.SelectedIndex != -1) { carrera = (Carrera)comboBoxCarrera.SelectedItem; AltaCarrera altaCarrera = new AltaCarrera(logicaprincipal, (Carrera)carrera.Clone(), comboBoxCarrera.SelectedIndex); altaCarrera.ShowDialog(); this.DataContext = logicaprincipal; } }
private void df_Click(object sender, RoutedEventArgs e) { AltaCarrera altaCarrera = new AltaCarrera(logicaprincipal); altaCarrera.ShowDialog(); }