Exemple #1
0
        static void Main()
        {
            try
            {
                bool flag;
                int  choice;

                do
                {
                    do
                    {
                        Console.WriteLine();
                        Console.WriteLine("Welcome to BridgeLabz");
                        Console.WriteLine();
                        Console.WriteLine("1. Inventory Data Management Program");
                        Console.WriteLine("2. Regular Expression Program");
                        Console.WriteLine("3. Stock Report Program");
                        Console.WriteLine("4. Inventory Management Program");
                        Console.WriteLine("5. Commercial Data Processing Program");
                        Console.WriteLine("6. Address Book Program");
                        Console.WriteLine("7. Deck Of Cards Program");
                        Console.WriteLine("8. Deck Of Cards Using Queue Program");
                        Console.WriteLine("9. Clinique Management Program");
                        Console.WriteLine("10. Exit");
                        Console.Write("Enter Your Choice: ");
                        flag = int.TryParse(Console.ReadLine(), out choice);
                        Utility.ErrorMessage(flag);
                    } while (!flag);
                    flag = false;
                    switch (choice)
                    {
                    case 1:
                        InventoryMainProgram.InventoryMain();
                        break;

                    case 2:
                        RegularExpressionProgram.RegularExpression();
                        break;

                    case 3:
                        StockReportProgram.StockReport();
                        break;

                    case 4:
                        InventoryManagerProgram.InventoryManager();
                        break;

                    case 5:
                        CommercialDataProcessingProgram.StockReportProgram.StockReport();
                        break;

                    case 6:
                        AddressBookProgram.AddressBook();
                        break;

                    case 7:
                        DeckOfCardsProgram.DeckOfCards();
                        break;

                    case 8:
                        DeckOfCardsUsingQueueProgram.DeckOfCardsUsingQueue();
                        break;

                    case 9:
                        CliniqueManagementsProgram.CliniqueManagements();
                        break;

                    case 10:
                        flag = true;
                        break;

                    default:
                        Console.WriteLine("Invalid Choice !!!");
                        break;
                    }
                } while (!flag);
            }
            catch (Exception e)
            {
                Console.WriteLine("Message: {0}", e.Message);
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("\n........Welcome To Object Oriented Programs........\n");
            bool flag = true;

            while (flag)
            {
                try
                {
                    Console.WriteLine("\n");
                    Console.WriteLine("\t1. Inventory Data Management");
                    Console.WriteLine("\t2. Inventory Management Program");
                    Console.WriteLine("\t3. Address Book");
                    Console.WriteLine("\t4. Stock Account Management");
                    Console.WriteLine("\t5. Deck Of Cards");
                    Console.WriteLine("\t6. Deck Of Cards Using Queue");
                    Console.WriteLine("\t7. Clinique Management");
                    Console.WriteLine("\t8. Commercial Data Processing");
                    Console.WriteLine("\t9. Exit");
                    Console.Write("Enter Your Choice: ");
                    int choice = Convert.ToInt32(Console.ReadLine());
                    switch (choice)
                    {
                    case 1:
                        InventoryUtility.InventoryMain();
                        break;

                    case 2:
                        InventoryManagement.InventoryManager();
                        break;

                    case 3:
                        AddressBookProgram.AddressBook();
                        break;

                    case 4:
                        StockReportProgram.StockReport();
                        break;

                    case 5:
                        DeckOfCardsProgram.DeckOfCards();
                        break;

                    case 6:
                        DeckOfCardsQueueProgram.DeckOfCardsQueue();
                        break;

                    case 7:
                        CliniqueManagementProgram.CliniqueManagement();
                        break;

                    case 8:
                        StockAccountReportProgram.StockReport();;
                        break;

                    case 9:
                        flag = false;
                        break;

                    default:
                        Console.WriteLine("Wrong choice!");
                        break;
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex);
                }
            }
        }