diff --git a/EgwControlCenter.App/BlazorForm.cs b/EgwControlCenter.App/BlazorForm.cs index 2f1d7b6..ad1b257 100644 --- a/EgwControlCenter.App/BlazorForm.cs +++ b/EgwControlCenter.App/BlazorForm.cs @@ -34,6 +34,11 @@ namespace EgwControlCenter.App private bool forceClose = false; private bool showReduced = false; + /// + /// Periodo di blocco invio nuove notifiche se ci sono + update... + /// + private int VetoNewNotifySec = 15; + #endregion Private Fields #region Private Properties @@ -44,6 +49,11 @@ namespace EgwControlCenter.App private System.Reflection.AssemblyName CurrAssembly { get; set; } = new System.Reflection.AssemblyName(); + /// + /// Ultima visualizzazione messaggio... + /// + private DateTime lastMsqShown { get; set; } = DateTime.MinValue; + #endregion Private Properties #region Private Methods @@ -145,10 +155,6 @@ namespace EgwControlCenter.App blazorWebView1.RootComponents.Add("#app"); } - /// - /// Periodo di blocco invio nuove notifiche se ci sono + update... - /// - private int VetoNewNotifySec = 10; /// /// Verifica se ci siano update da mostrare come notifica in tray /// @@ -171,11 +177,6 @@ namespace EgwControlCenter.App } } - /// - /// Ultima visualizzazione messaggio... - /// - private DateTime lastMsqShown { get; set; } = DateTime.MinValue; - private void NotifyIcon1_BalloonTipClicked(object? sender, EventArgs e) { DoDisplay(); diff --git a/EgwControlCenter.App/EgwControlCenter.App.csproj b/EgwControlCenter.App/EgwControlCenter.App.csproj index aab8f7b..4f7f9e2 100644 --- a/EgwControlCenter.App/EgwControlCenter.App.csproj +++ b/EgwControlCenter.App/EgwControlCenter.App.csproj @@ -5,7 +5,7 @@ enable true enable - 1.0.2409.2410 + 1.0.2409.2411 diff --git a/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml b/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml index 865e57e..e8d1dfa 100644 --- a/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml +++ b/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml @@ -4,8 +4,8 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - 2410 - 1.0.2409.2410 + 2411 + 1.0.2409.2411 True Release True diff --git a/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml.user b/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml.user index 5289e73..7c9c3e0 100644 --- a/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml.user +++ b/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml.user @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - True|2024-09-24T08:19:14.6518641Z||; + True|2024-09-24T09:30:39.4755650Z||;True|2024-09-24T10:19:14.6518641+02:00||; \ No newline at end of file diff --git a/EgwControlCenter.Core/AppControlService.cs b/EgwControlCenter.Core/AppControlService.cs index 0c9cc1a..0f86cb4 100644 --- a/EgwControlCenter.Core/AppControlService.cs +++ b/EgwControlCenter.Core/AppControlService.cs @@ -20,7 +20,9 @@ namespace EgwControlCenter.Core string startDir = Path.GetDirectoryName(assembly.Location)!; ConfDir = startDir; //DataDir = Environment.GetEnvironmentVariable("ClickOnce_DataDirectory") ?? startDir; - DataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),"EgalWare", "AppControlCenter"); + string appData = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)?? "C:\\ProgramData\\"; + DataDir = Path.Combine(appData,"EgalWare", "AppControlCenter"); + Log.Trace($"appData: {appData} | EnvData: {Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)}"); // verifico esistenza directory... Directory.CreateDirectory(ConfDir); Directory.CreateDirectory(DataDir);