예제 #1
0
        private void ButtonNew_Click(object sender, RoutedEventArgs e)
        {
            StainEditDialog dialog = new StainEditDialog();

            dialog.ShowDialog();
            NotifyPropertyChanged("StainCollection");
        }
예제 #2
0
 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");
     }
 }