Aggiunto override ToString in classe "Pizza" per corretta gestione dei titoli su ListBox
This commit is contained in:
1 parent
1416ac4650
commit
706fed3186
1 file changed
+5
@@ -16,5 +16,10 @@ namespace PizzaExpress_Client
|
|||||||
public int Tavolo { get; set; }
|
public int Tavolo { get; set; }
|
||||||
public string Stato { get; set; } = string.Empty;
|
public string Stato { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return $"{Id}) {Nome} - {Categoria} [{Stato}]";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user