Esempio n. 1
0
        public HistoryWindow(Products Product)
        {
            InitializeComponent();
            DataContext = this;

            SelectedProduct = Product;

            HistoryList          = Core.DB.ProductSales.ToList();
            ProductsList         = Core.DB.Products.ToList();
            SelectedProductIndex = ProductsList.FindIndex(product => product.Id == SelectedProduct.Id);
        }