/// <summary> /// Add Item to gui, is used to Add an item /// By creating a temp string and int /// taking the values the user, inputs and creates an object with it /// </summary> public void AddItemGui() { Console.Clear(); Console.WriteLine("[============ Add users to the line ============]"); Console.Write("|Your Name: "); string name = Console.ReadLine(); Console.Write("|Your Number: "); Int32.TryParse(Console.ReadLine(), out int phoneNum); phoneWaitingList.AddTooQueue(new PhoneNumber { PhoneNumb = phoneNum, NameOfPhoneUser = name }); }