Exemple #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);
        }
 private void AddProduct_Click(object sender, RoutedEventArgs e)
 {
     AddProduct addprod = new AddProduct();
     addprod.ShowDialog();
 }