コード例 #1
0
        private void AllProductsList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ProdCardWindow productCardWindow = new ProdCardWindow();
            var            selectedItem      = AllProductsList.SelectedItem as Product;

            productCardWindow.ChildListView.ItemsSource = ProductService.GetProductChilds(selectedItem); ProductService.GetProductChilds(selectedItem);
            productCardWindow.Title = selectedItem.Name;
            productCardWindow.Show();
        }
コード例 #2
0
        private void ChildListView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ProductService ProductService    = new ProductService();
            ProdCardWindow productCardWindow = new ProdCardWindow();

            productCardWindow.ChildListView.ItemsSource = ProductService.GetProductChilds(ChildListView.SelectedItem as Product); ProductService.GetProductChilds((ChildListView.SelectedItem as Product));
            productCardWindow.Title = (ChildListView.SelectedItem as Product).Name;
            productCardWindow.Show();
        }