Exemplo n.º 1
0
        public void ForCreating()
        {
            Lead LeadOptions = new Lead();
            Lead CreateLead  = new Lead();

            CreateLead.ThirdLead();
            LeadOptions.ViewingLeadOptions();
            string UserChoice = Console.ReadLine().ToUpper();

            switch (UserChoice)
            {
            case "V":
                existingLead.ViewingExistingLeads();
                UserChoice = Console.ReadLine().ToUpper();


                if (UserChoice == "1")
                {
                    Lead DisplayFirstLead = new Lead();
                    DisplayFirstLead.FirstLead();
                }
                else if (UserChoice == "2")
                {
                    Lead DisplaySecondLead = new Lead();
                    DisplaySecondLead.SecondLead();
                }
                else if (UserChoice == "3")
                {
                    Lead DisplayNewLead = new Lead();
                    DisplayNewLead.DisplayNewLead();
                }
                else
                {
                    Console.WriteLine("Program is exiting");
                }

                break;

            case "C":
                CreateLead.ThirdLead();
                break;

            default:
                Console.WriteLine("Program is exiting");
                break;
            }
        }
Exemplo n.º 2
0
        public void ForViewing()
        {
            Console.Write("INPUT: ");
            string UserChoice = Console.ReadLine().ToUpper();

            switch (UserChoice)
            {
            case "1":
                Lead DisplayFirstLead = new Lead();
                DisplayFirstLead.FirstLead();
                break;

            case "2":
                Lead DisplaySecondLead = new Lead();
                DisplaySecondLead.SecondLead();
                break;

            default:
                existingLead.ViewingExistingLeads();
                Console.WriteLine("Input: ");
                UserChoice = Console.ReadLine().ToUpper();
                break;
            }
        }