private void Edit_Click(object Sender, RoutedEventArgs E) { if (lb.SelectedItem != null) { EditTravel Edit = new EditTravel(lb.SelectedItem as DB.Reise); Edit.Show(); } }
private void New_Click(object Sender, RoutedEventArgs E) { EditTravel Edit = new EditTravel(); Edit.Show(); }