private void ButtonNew_Click(object sender, RoutedEventArgs e) { StainEditDialog dialog = new StainEditDialog(); dialog.ShowDialog(); NotifyPropertyChanged("StainCollection"); }
private void ListViewStains_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (this.ListViewStains.SelectedItem != null) { Business.Stain.Model.Stain stain = (Business.Stain.Model.Stain) this.ListViewStains.SelectedItem; StainEditDialog dialog = new StainEditDialog(stain); dialog.ShowDialog(); NotifyPropertyChanged("StainCollection"); } }