/// <summary>
 /// Adds methods to <c>CommandsLocation</c> which the user will have access to in the location menu.
 /// Adds the admin commands to the <c>CommandsLocation</c>.
 /// </summary>
 public new void GetCommandsLocation()
 {
     CommandsLocation.Add(AddProduct);
     CommandsLocation.Add(RemoveProduct);
     CommandsLocation.Add(ManageInventory);
     CommandsLocation.Add(ShowOrderHistory);
 }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return($"{{{nameof(Location)}={Location.ToString("X")} ({Location}), {nameof(CommandsPointerLocation)}={CommandsPointerLocation.ToString("X")} ({CommandsPointerLocation}), {nameof(CommandsLocation)}={CommandsLocation.ToString("X")} ({CommandsLocation}), {nameof(PsaCommands)}={string.Join(",", PsaCommands.Select(x => x.ToString()).ToList())}}}");
 }