Exemple #1
0
        static void Main(string[] args)
        {
            int       pilihan  = 0;
            Item      item     = new Item();
            MyContext _context = new MyContext();

            Console.WriteLine("==========Item Data==========");
            Console.WriteLine("1. Mangae Suppliers");
            Console.WriteLine("2. Manage Items");
            Console.WriteLine("3. Transaction");
            Console.WriteLine("====================================");
            Console.Write("Pilihanmu : ");
            pilihan = int.Parse(Console.ReadLine());
            Console.WriteLine("====================================");
            switch (pilihan)
            {
            case 1:
                ControllerSupplier bebas = new ControllerSupplier();
                bebas.ManageSupplier();
                break;

            case 2:
                ControllerItem namanyaapa = new ControllerItem();
                namanyaapa.ManageItem();
                break;

            case 3:
                controllerTransaction bingung = new controllerTransaction();
                bingung.ManageTransaction();
                break;

            default:
                Console.WriteLine("Your Choice is not found, try again see you later good bye.");
                break;
            }
            Console.Read();
        }