private void Edit_Click(object sender, RoutedEventArgs e) { var window = new AddComponentWindow(Komponente[gridObjects.SelectedIndex], true) { Owner = this }; window.Show(); }
private void AddButtonClick(object sender, RoutedEventArgs e) { var window = new AddComponentWindow { Owner = this }; window.ShowDialog(); }