Exemple #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;
            }
        }
Exemple #2
0
        public void TheChoice()
        {
            string  UserChoice     = Console.ReadLine().ToUpper();
            Lead    LeadOptions    = new Lead();
            Contact ContactOptions = new Contact();
            Choices molla          = new Choices();

            switch (UserChoice)
            {
            case "H":
                Console.WriteLine("Home");
                break;

            case "L":
                Console.WriteLine("———————————————— Lead ————————————————\n");
                LeadOptions.ViewingLeadOptions();
                UserChoice = Console.ReadLine().ToUpper();

                if (UserChoice.Equals("V"))
                {
                    existingLead.ViewingExistingLeads();
                    ForViewing();
                }
                else if (UserChoice.Equals("C"))
                {
                    ForCreating();
                }
                else
                {
                    for (int i = 0; i < 5; i++)
                    {
                        LeadOptions.ViewingLeadOptions();
                        Console.WriteLine("Input: ");
                        UserChoice = Console.ReadLine().ToUpper();
                        Console.WriteLine("Program is existing");
                    }
                }
                break;

            case "C":
                Console.WriteLine("———————————————— Contacts ————————————————\n");
                ContactOptions.ViewingContactsOption();
                UserChoice = Console.ReadLine().ToUpper();

                if (UserChoice.Equals("V"))
                {
                    ContactOptions.ListOfContactName();
                    ContactOptions.ListOfContacts();
                }
                else if (UserChoice.Equals("C"))
                {
                    ForCreating();
                }
                else
                {
                    for (int i = 0; i < 5; i++)
                    {
                        LeadOptions.ViewingLeadOptions();
                        Console.WriteLine("Input: ");
                        UserChoice = Console.ReadLine().ToUpper();
                        Console.WriteLine("Program is existing");
                    }
                }


                break;

            case "A":
                Console.WriteLine("———————————————— Accounts ————————————————\n");
                break;

            case "D":
                Console.WriteLine("———————————————— Deals ————————————————\n");
                break;

            case "S":
                Console.WriteLine("———————————————— Sales ————————————————\n");
                break;

            case "E":
                Console.WriteLine("Bye");
                break;

            default:
                DisplayAction();
                TheChoice();
                break;
            }
        }