This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
SXS20240115/SRC/MESWin/ENT/ET_Subcontractor/My Project/Settings.Designer.vb

74 lines
2.9 KiB
VB.net
Raw Normal View History

2024-01-15 14:20:27 +08:00
'------------------------------------------------------------------------------
' <auto-generated>
2024-01-17 16:17:54 +08:00
' 此代码由工具生成。
' 运行时版本:4.0.30319.42000
2024-01-15 14:20:27 +08:00
'
2024-01-17 16:17:54 +08:00
' 对此文件的更改可能会导致不正确的行为,并且如果
' 重新生成代码,这些更改将会丢失。
2024-01-15 14:20:27 +08:00
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
2024-01-17 16:17:54 +08:00
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0"), _
2024-01-15 14:20:27 +08:00
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Partial Friend NotInheritable Class MySettings
Inherits Global.System.Configuration.ApplicationSettingsBase
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
2024-01-17 16:17:54 +08:00
#Region "My.Settings 自动保存功能"
2024-01-15 14:20:27 +08:00
#If _MyType = "WindowsForms" Then
Private Shared addedHandler As Boolean
Private Shared addedHandlerLockObject As New Object
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
2024-01-17 16:17:54 +08:00
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
2024-01-15 14:20:27 +08:00
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
#End If
Return defaultInstance
End Get
End Property
End Class
End Namespace
Namespace My
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
Friend Module MySettingsProperty
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
2024-01-17 16:17:54 +08:00
Friend ReadOnly Property Settings() As Global.ET_Subcontractor_21703.My.MySettings
2024-01-15 14:20:27 +08:00
Get
2024-01-17 16:17:54 +08:00
Return Global.ET_Subcontractor_21703.My.MySettings.Default
2024-01-15 14:20:27 +08:00
End Get
End Property
End Module
End Namespace