diff --git a/Program.cs b/Program.cs index 0ac28f0..aac3e71 100644 --- a/Program.cs +++ b/Program.cs @@ -1,9 +1,50 @@ namespace vacanzeEstive_rubricaTelefonica; -class Program -{ - static void Main(string[] args) - { - Console.WriteLine("Hello, World!"); +class Program { + static void Main(string[] args) { + Console.Clear(); + int scelta = 0; + + do { + Console.WriteLine("Inserire un'opzione:"); + Console.WriteLine("1. Aggiungi nuova voce in rubrica"); + Console.WriteLine("2. Ricerca esatta per nome"); + Console.WriteLine("3. Ricerca approssimata per nome"); + Console.WriteLine("4. Visualizza rubrica completa"); + Console.WriteLine("0. Esci"); + Console.Write("Scelta: "); + + try { + scelta = Convert.ToInt32(Console.ReadLine()); + + switch (scelta) { + case 0: + break; + case 1: + Pausa(); + break; + case 2: + Pausa(); + break; + case 3: + Pausa(); + break; + default: + Console.WriteLine("Opzione non valida."); + Pausa(); + break; + } + } + catch (FormatException) { + Console.WriteLine("Opzione non valida."); + Pausa(); + } + } + while (scelta != 0); + } + + static void Pausa() { + Console.WriteLine("Premere un tasto per continuare. . ."); + Console.ReadKey(); } } diff --git a/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs new file mode 100644 index 0000000..9e76325 --- /dev/null +++ b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] diff --git a/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.AssemblyInfo.cs b/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.AssemblyInfo.cs new file mode 100644 index 0000000..a828887 --- /dev/null +++ b/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("vacanzeEstive_rubricaTelefonica")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2b8a74dc3d7e2b5d4ec8c84246e6d5258a05a207")] +[assembly: System.Reflection.AssemblyProductAttribute("vacanzeEstive_rubricaTelefonica")] +[assembly: System.Reflection.AssemblyTitleAttribute("vacanzeEstive_rubricaTelefonica")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.AssemblyInfoInputs.cache b/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.AssemblyInfoInputs.cache new file mode 100644 index 0000000..d000c59 --- /dev/null +++ b/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +1cf205894741f0f344720b04f287e466e62e0c71f7ba235f2c86401c9a1d40c3 diff --git a/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..12c04ef --- /dev/null +++ b/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net9.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = vacanzeEstive_rubricaTelefonica +build_property.ProjectDir = /home/Verde/git/vacanzeEstive_rubricaTelefonica/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 9.0 +build_property.EnableCodeStyleSeverity = diff --git a/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.GlobalUsings.g.cs b/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.assets.cache b/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.assets.cache new file mode 100644 index 0000000..4ee42fc Binary files /dev/null and b/obj/Debug/net9.0/vacanzeEstive_rubricaTelefonica.assets.cache differ