From 6395d8c97b1e141c30075eaaf736928e019e1a79 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 9 Jan 2026 10:10:33 +0100 Subject: [PATCH] EgtDotNETBasis 3.1a3 : - si usa Net Framevork 4.0 Client invece di 4.7.2. --- EgtDotNETBasis/EgtDotNETBasis.vbproj | 4 +- EgtDotNETBasis/My Project/AssemblyInfo.vb | 6 +-- .../My Project/Resources.Designer.vb | 23 +++++---- .../My Project/Settings.Designer.vb | 50 +++++++++---------- 4 files changed, 43 insertions(+), 40 deletions(-) diff --git a/EgtDotNETBasis/EgtDotNETBasis.vbproj b/EgtDotNETBasis/EgtDotNETBasis.vbproj index 2bed369..4536f96 100644 --- a/EgtDotNETBasis/EgtDotNETBasis.vbproj +++ b/EgtDotNETBasis/EgtDotNETBasis.vbproj @@ -10,8 +10,9 @@ EgtDotNETBasis 512 Windows - v4.7.2 + v4.0 true + Client true @@ -69,6 +70,7 @@ True Application.myapp + True True diff --git a/EgtDotNETBasis/My Project/AssemblyInfo.vb b/EgtDotNETBasis/My Project/AssemblyInfo.vb index 714def5..4d07210 100644 --- a/EgtDotNETBasis/My Project/AssemblyInfo.vb +++ b/EgtDotNETBasis/My Project/AssemblyInfo.vb @@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices - + @@ -28,5 +28,5 @@ Imports System.Runtime.InteropServices ' Revision ' - - + + diff --git a/EgtDotNETBasis/My Project/Resources.Designer.vb b/EgtDotNETBasis/My Project/Resources.Designer.vb index d7c3fb8..e034815 100644 --- a/EgtDotNETBasis/My Project/Resources.Designer.vb +++ b/EgtDotNETBasis/My Project/Resources.Designer.vb @@ -11,6 +11,7 @@ Option Strict On Option Explicit On +Imports System Namespace My.Resources @@ -21,20 +22,20 @@ Namespace My.Resources ''' ''' A strongly-typed resource class, for looking up localized strings, etc. ''' - _ + _ Friend Module Resources - + Private resourceMan As Global.System.Resources.ResourceManager - + Private resourceCulture As Global.System.Globalization.CultureInfo - + ''' ''' Returns the cached ResourceManager instance used by this class. ''' - _ + _ Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager Get If Object.ReferenceEquals(resourceMan, Nothing) Then @@ -44,17 +45,17 @@ Namespace My.Resources Return resourceMan End Get End Property - + ''' ''' Overrides the current thread's CurrentUICulture property for all ''' resource lookups using this strongly typed resource class. ''' - _ + _ Friend Property Culture() As Global.System.Globalization.CultureInfo Get Return resourceCulture End Get - Set(ByVal value As Global.System.Globalization.CultureInfo) + Set resourceCulture = value End Set End Property diff --git a/EgtDotNETBasis/My Project/Settings.Designer.vb b/EgtDotNETBasis/My Project/Settings.Designer.vb index e6cfe58..fd376fc 100644 --- a/EgtDotNETBasis/My Project/Settings.Designer.vb +++ b/EgtDotNETBasis/My Project/Settings.Designer.vb @@ -13,42 +13,42 @@ Option Explicit On Namespace My - - _ + + _ Partial Friend NotInheritable Class MySettings Inherits Global.System.Configuration.ApplicationSettingsBase - - Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) - + + Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings) + #Region "My.Settings Auto-Save Functionality" #If _MyType = "WindowsForms" Then - Private Shared addedHandler As Boolean + Private Shared addedHandler As Boolean - Private Shared addedHandlerLockObject As New Object + Private Shared addedHandlerLockObject As New Object - _ - Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) - If My.Application.SaveMySettingsOnExit Then - My.Settings.Save() - End If - End Sub + _ + Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs) + If My.Application.SaveMySettingsOnExit Then + My.Settings.Save() + End If + End Sub #End If #End Region - + Public Shared ReadOnly Property [Default]() As MySettings Get - + #If _MyType = "WindowsForms" Then - If Not addedHandler Then - SyncLock addedHandlerLockObject - If Not addedHandler Then - AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings - addedHandler = True - End If - End SyncLock - End If + If Not addedHandler Then + SyncLock addedHandlerLockObject + If Not addedHandler Then + AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings + addedHandler = True + End If + End SyncLock + End If #End If Return defaultInstance End Get