Interaction logic for EditInventory.xaml
Наследование: Window
Пример #1
0
        public void EditInventoryTest()
        {
            Item product = new Item();

            product.Category = "Beer";
            product.Name     = "Blue Moon";
            List <Item> inventory = new List <Item>();

            inventory.Add(product);
            pointofsale_application.EditProduct   inv    = new pointofsale_application.EditProduct(product);
            pointofsale_application.AddProduct    create = new pointofsale_application.AddProduct();
            pointofsale_application.EditInventory einv   = new pointofsale_application.EditInventory(inventory);

            //create.CreateItem("24", "10.25", "Jack", "Jack Bottle", "Whiskey");
            //inv.EditItem("31", "21000", "5.55", "Patron", "Tequila", "Tequila");
            //inv.DeleteItem(24);
        }
Пример #2
0
        private void InventoryButton_Click(object sender, RoutedEventArgs e)
        {
            EditInventory editInventory = new EditInventory(Inventory);

            editInventory.ShowDialog();
        }