예제 #1
0
        //Menu to modify the table productstype
        private void menuProducttype()
        {
            string[]    optionMenu = { "Add New Branch", "Update Branch Information",
                                       "Delete Branch",     "Display all Branches", "Quit" };
            string      Title = "Inventory Control System: /Tools/Poructstype Info:";
            int         Option;
            Producttype productstype = new Producttype();

            do
            {
                showMenu(optionMenu, Title);
                Option = readSelection();
                switch (Option)
                {
                case 1:
                    productstype.insertProducttype();
                    break;

                case 2:
                    productstype.updateProducttype();
                    break;

                case 3:
                    productstype.deleteProducttype();
                    break;

                case 4:
                    productstype.displayProductstype();
                    break;
                }
            } while (Option != optionMenu.Length);
        }
예제 #2
0
        private static void testingProducttype()
        {
            Producttype producttype = new Producttype("Producttype");

            // producttype.Insert("IPhone", "30 Fierce", 2018, "5' Screen 32 GB");
            //producttype.Delete(4);
            // producttype.Update(5, "Alaca-tel", "Fierce 303",2019, "Digital sensor");
            // producttype.DisplayRecords();
            System.Console.ReadKey();
        }