private void AddStreamPassButton_Click(object sender, System.Windows.RoutedEventArgs e) { StreamPassWindow window = new StreamPassWindow(); window.Closed += Window_Closed; window.Show(); }
private void EditButton_Click(object sender, System.Windows.RoutedEventArgs e) { Button button = (Button)sender; StreamPassModel seasonPass = (StreamPassModel)button.DataContext; StreamPassWindow window = new StreamPassWindow(seasonPass); window.Closed += Window_Closed; window.Show(); }