From 706fed31865689053c287b85c7e498d545ff0f62 Mon Sep 17 00:00:00 2001 From: Andrea Date: Wed, 28 Jan 2026 08:25:56 +0100 Subject: [PATCH] Aggiunto override ToString in classe "Pizza" per corretta gestione dei titoli su ListBox --- Pizza.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Pizza.cs b/Pizza.cs index 939add5..fef7b0d 100644 --- a/Pizza.cs +++ b/Pizza.cs @@ -16,5 +16,10 @@ namespace PizzaExpress_Client public int Tavolo { get; set; } public string Stato { get; set; } = string.Empty; + public override string ToString() + { + return $"{Id}) {Nome} - {Categoria} [{Stato}]"; + } + } }