From 192f25a608bb9d9396494a90dc56487a8a482d9d Mon Sep 17 00:00:00 2001 From: "d.breimaier" Date: Mon, 26 May 2025 09:27:04 +0200 Subject: [PATCH] addIn --- VERAGAddIn/My Project/Settings.Designer.vb | 38 ++++++++++++---------- VERAGAddIn/VERAGAddIn.vbproj | 7 ++-- VERAGAddIn/app.config | 30 ++++++++++++++--- VERAGAddIn/rbnVERAG.vb | 16 +++++---- 4 files changed, 60 insertions(+), 31 deletions(-) diff --git a/VERAGAddIn/My Project/Settings.Designer.vb b/VERAGAddIn/My Project/Settings.Designer.vb index 49ec1e1..31eed03 100644 --- a/VERAGAddIn/My Project/Settings.Designer.vb +++ b/VERAGAddIn/My Project/Settings.Designer.vb @@ -12,15 +12,16 @@ Option Strict On Option Explicit On - - _ -Partial Friend NotInheritable Class MySettings - Inherits Global.System.Configuration.ApplicationSettingsBase - - Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings) +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) + #Region "Automatische My.Settings-Speicherfunktion" #If _MyType = "WindowsForms" Then Private Shared addedHandler As Boolean @@ -35,10 +36,10 @@ Partial Friend NotInheritable Class MySettings End Sub #End If #End Region - - Public Shared ReadOnly Property [Default]() As MySettings - Get - + + Public Shared ReadOnly Property [Default]() As MySettings + Get + #If _MyType = "WindowsForms" Then If Not addedHandler Then SyncLock addedHandlerLockObject @@ -49,10 +50,11 @@ Partial Friend NotInheritable Class MySettings End SyncLock End If #End If - Return defaultInstance - End Get - End Property -End Class + Return defaultInstance + End Get + End Property + End Class +End Namespace Namespace My @@ -62,9 +64,9 @@ Namespace My Friend Module MySettingsProperty _ - Friend ReadOnly Property Settings() As Global.VERAGAddIn.MySettings + Friend ReadOnly Property Settings() As Global.VERAGAddIn.My.MySettings Get - Return Global.VERAGAddIn.MySettings.Default + Return Global.VERAGAddIn.My.MySettings.Default End Get End Property End Module diff --git a/VERAGAddIn/VERAGAddIn.vbproj b/VERAGAddIn/VERAGAddIn.vbproj index 4c1cbe5..b046b17 100644 --- a/VERAGAddIn/VERAGAddIn.vbproj +++ b/VERAGAddIn/VERAGAddIn.vbproj @@ -26,7 +26,7 @@ Library VERAGAddIn VERAGAddIn - v4.7 + v4.8 VSTO40 @@ -36,7 +36,7 @@ \\ftps.verag.ag\g\ftp\programme\VERAGAddin\ http://ftps.verag.ag/VERAGAddin/ de - 1.0.1.128 + 1.0.1.129 true true 0 @@ -366,6 +366,9 @@ SDL + + + 10.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) diff --git a/VERAGAddIn/app.config b/VERAGAddIn/app.config index 27d603b..7a9a62b 100644 --- a/VERAGAddIn/app.config +++ b/VERAGAddIn/app.config @@ -16,11 +16,11 @@ - + - + @@ -43,9 +43,29 @@ - - + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/VERAGAddIn/rbnVERAG.vb b/VERAGAddIn/rbnVERAG.vb index 1886f89..158780e 100644 --- a/VERAGAddIn/rbnVERAG.vb +++ b/VERAGAddIn/rbnVERAG.vb @@ -583,6 +583,9 @@ Public Class AVISO_Mail_Functions End Function Shared Function isMail_Barsan(mailItem As Outlook.MailItem) As Boolean + '--------------------- WIRD NICHT MEHR GENUTZT + Return False + '--------------------- WIRD NICHT MEHR GENUTZT Try If mailItem IsNot Nothing Then Dim srch As String = "