private void btnNewProduct_Click(object sender, RoutedEventArgs e) { ProductView window = new ProductView(gateway); window.Closed += new EventHandler(window_Closed); window.Show(); }
private void NewButton_Click(object sender, RoutedEventArgs e) { var window = new ProductView(); window.Closed += this.Window_Closed; window.Show(); }
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(); }
private void ProductsListView_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { Product p = ProductsListView.SelectedItem as Product; ProductView window = new ProductView(gateway); window.Closed += new EventHandler(window_Closed); window.UpdateProduct(p); window.Show(); }
private void ProductsListView_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { var product = productsListView.SelectedItem as Product; var window = new ProductView(); window.Closed += this.Window_Closed; window.UpdateProduct(product); window.Show(); }