Example #1
0
        private void btnNewProduct_Click(object sender, RoutedEventArgs e)
        {
            ProductView window = new ProductView(gateway);

            window.Closed += new EventHandler(window_Closed);
            window.Show();
        }
Example #2
0
        private void NewButton_Click(object sender, RoutedEventArgs e)
        {
            var window = new ProductView();

            window.Closed += this.Window_Closed;
            window.Show();
        }
Example #3
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();
 }
Example #4
0
        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();
        }
Example #5
0
        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();
        }
Example #6
0
 private void btnNewProduct_Click(object sender, RoutedEventArgs e)
 {
     ProductView window = new ProductView(gateway);
     window.Closed += new EventHandler(window_Closed);
     window.Show();
 }