diff --git a/App.config b/App.config
new file mode 100644
index 0000000..fdfdd4b
--- /dev/null
+++ b/App.config
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+ http://localhost:5000
+
+
+
+
\ No newline at end of file
diff --git a/GestionePizzeForm.cs b/GestionePizzeForm.cs
index 81ef572..612c762 100644
--- a/GestionePizzeForm.cs
+++ b/GestionePizzeForm.cs
@@ -1,3 +1,4 @@
+using System.Configuration;
using System.Net.Http.Json;
namespace PizzaExpress_Client
@@ -29,7 +30,7 @@ namespace PizzaExpress_Client
MaximizeBox = false;
StartPosition = FormStartPosition.CenterScreen;
- _httpClient = new HttpClient { BaseAddress = new Uri("http://localhost:5000/") };
+ _httpClient = new HttpClient { BaseAddress = new Uri(Properties.Settings.Default.serverUrl) };
// ======================================================
// PANNELLO SUPERIORE
diff --git a/PizzaExpress-Client.csproj b/PizzaExpress-Client.csproj
index 16d15f3..a768810 100644
--- a/PizzaExpress-Client.csproj
+++ b/PizzaExpress-Client.csproj
@@ -9,4 +9,19 @@
enable
+
+
+ True
+ True
+ Settings.settings
+
+
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..ad1084f
--- /dev/null
+++ b/Properties/Settings.Designer.cs
@@ -0,0 +1,38 @@
+//------------------------------------------------------------------------------
+//
+// Il codice è stato generato da uno strumento.
+// Versione runtime:4.0.30319.42000
+//
+// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
+// il codice viene rigenerato.
+//
+//------------------------------------------------------------------------------
+
+namespace PizzaExpress_Client.Properties {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.11.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default {
+ get {
+ return defaultInstance;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("http://localhost:5000")]
+ public string serverUrl {
+ get {
+ return ((string)(this["serverUrl"]));
+ }
+ set {
+ this["serverUrl"] = value;
+ }
+ }
+ }
+}
diff --git a/Properties/Settings.settings b/Properties/Settings.settings
new file mode 100644
index 0000000..cf2df78
--- /dev/null
+++ b/Properties/Settings.settings
@@ -0,0 +1,9 @@
+
+
+
+
+
+ http://localhost:5000
+
+
+
\ No newline at end of file