コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }