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; } }
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; } }