private void EditDetail(object sender, MouseButtonEventArgs e) { var editWindow = new DetailWindow((Detail)DetailList.SelectedItem); editWindow.ShowDialog(); DetailList.Items.Refresh(); }
private void CreateDetail(object sender, RoutedEventArgs e) { var detail = new Detail("Empty Detail"); var editWindow = new DetailWindow(detail); if (editWindow.ShowDialog() == true) { MainWindowsViewer.Details.Add(detail); } }