private void Edit_Click(object sender, RoutedEventArgs e) { _record = (ShowRecord)unfinishedShows.SelectedItem; EditEntry entry = new EditEntry(_record.Title); entry.Closed += ChildWindowClosed; entry.DataContext = _record; entry.Show(); }
private void onClick_Edit(object sender, RoutedEventArgs e) { _show = (ShowRecord)shows.SelectedItem; EditEntry entry = new EditEntry(_show.Title); entry.DataContext = _show; entry.Closed += ChildWindowClosed; entry.Show(); }