示例#1
0
 private void ProductsListView_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     Product p = ProductsListView.SelectedItem as Product;
     ProductView window = new ProductView();
     window.Closed += new EventHandler(this.Window_Closed);
     window.UpdateProduct(p);
     window.Show();
 }
示例#2
0
 private void btnNewProduct_Click(object sender, RoutedEventArgs e)
 {
     ProductView window = new ProductView(gateway);
     window.Closed += new EventHandler(window_Closed);
     window.Show();
 }