Torna indietro

This commit is contained in:
La Programmatrice Verde 2025-05-08 16:51:36 +02:00
parent e9a2bb088e
commit 52aa781881
9 changed files with 137 additions and 132 deletions

View File

@ -993,12 +993,13 @@ class Program {
}
}
}
while (eccezione || input <= 0 || input > numeroClienti || clienti[input - 1] != null);
while (eccezione || input <= 0 || input > numeroClienti);
if (clienti[input - 1] == null) {
clienti[input - 1] = CreaCliente();
Console.WriteLine("Cliente inserito con successo");
Pausa();
}
break;
case 2:
string[] periodi = ["primavera", "estate", "autunno", "inverno"];
@ -1033,8 +1034,8 @@ class Program {
}
}
}
while (eccezione || input <= 0 || input > numeroClienti || clienti[input - 1] == null);
while (eccezione || input <= 0 || input > numeroClienti);
if (clienti[input - 1] != null) {
scelta = 5;
do {
Console.WriteLine("Quale periodo dell'anno scegliere?");
@ -1134,7 +1135,7 @@ class Program {
Console.WriteLine("Prenotazione già esistente.");
Pausa();
}
}
break;
case 3:
for (int i = 0; i < numeroClienti; i++) {
@ -1175,8 +1176,8 @@ class Program {
}
}
}
while (eccezione || input <= 0 || input > numeroClienti || clienti[input - 1] == null);
while (eccezione || input <= 0 || input > numeroClienti);
if (clienti[input - 1] != null) {
do {
Console.WriteLine("Scegliere una prenotazione:");
for (int i = 0; i < clienti[input - 1].GetPrenotazioni().Length; i++) {
@ -1213,6 +1214,7 @@ class Program {
Console.WriteLine("Prenotazione cancellata con successo.");
Pausa();
}
break;
case 5:
for (int i = 0; i < clienti.Length; i++) {
@ -1252,7 +1254,9 @@ class Program {
}
}
}
while (eccezione || input <= 0 || input > numeroClienti || clienti[input - 1] == null);
while (eccezione || input <= 0 || input > numeroClienti);
if (clienti[input - 1] != null) {
Prenotazione[] precedente = clienti[input - 1].GetPrenotazioni();
Prenotazione[] nuovo = new Prenotazione[precedente.Length + 1];
@ -1262,6 +1266,7 @@ class Program {
clienti[input - 1].SetPrenotazioni(nuovo);
Console.WriteLine("Prenotazione aggiunta con successo");
Pausa();
}
break;
default:
Console.WriteLine("Opzione non valida");

Binary file not shown.

Binary file not shown.

View File

@ -13,10 +13,10 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("agenzia_viaggi")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9eac5a5ec45cf7e6cb0f9452f425a08d185e86e1")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+e9a2bb088ee94b78852d49951dc3d021003dc309")]
[assembly: System.Reflection.AssemblyProductAttribute("agenzia_viaggi")]
[assembly: System.Reflection.AssemblyTitleAttribute("agenzia_viaggi")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
// Generato dalla classe WriteCodeFragment di MSBuild.

View File

@ -1 +1 @@
3c7d8fec6052be50a3529960f37448ffce5cb2d4ff973de00c355bb1dfcee246
153a91f0fce65a5966096ed29a3371d521a9c0aba32f41fa6a5d4d22dfeb12e3

Binary file not shown.

Binary file not shown.