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

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

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