public void ShowBoatList(Member member) { WriteLine($"{member.GetBoatCount()} boat(s):"); foreach (Boat boat in member.Boats) { WriteLine($"TYPE: {boat.GetTypeString()}, LENGTH: {boat.Length}m"); } }
public void ShowMenu(Member member) { //Console.Clear(); WriteLine("--- UPDATE MEMBER ---"); WriteLine($"NAME: {member.Name}"); WriteLine($"PersonalNumber: {member.PersonalNumber}"); WriteLine($"ID: {member.UniqueID}"); if (member.GetBoatCount() != 0) { ShowBoatList(member); } ShowInstructions(); }
public override void ShowInstructions(Member member) { if (member.GetBoatCount() == 0) { WriteLine("This user has no boats registered."); WriteLine("Press:"); WriteLine(" A to add new boat"); WriteLine(" M to return to main menu"); } else { ShowBoatList(member); ShowOptionsHeader(); WriteLine("Press:"); WriteLine(" A to add new boat"); WriteLine(" R to remove a boat"); WriteLine(" U to update a boat"); WriteLine(" M to return to main menu"); } }