|
|
@@ -1,4 +1,4 @@
|
|
|
-'------------------------------------------------------------------------------
|
|
|
+'------------------------------------------------------------------------------
|
|
|
' <auto-generated>
|
|
|
' 此代码由工具生成。
|
|
|
' 运行时版本:4.0.30319.42000
|
|
|
@@ -11,163 +11,61 @@
|
|
|
Option Strict On
|
|
|
Option Explicit On
|
|
|
|
|
|
-Imports System
|
|
|
|
|
|
-Namespace My.Resources
|
|
|
+
|
|
|
+<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
|
|
+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.0.3.0"), _
|
|
|
+ Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
|
|
+Partial Friend NotInheritable Class MySettings
|
|
|
+ Inherits Global.System.Configuration.ApplicationSettingsBase
|
|
|
|
|
|
- '此类是由 StronglyTypedResourceBuilder
|
|
|
- '类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
|
|
- '若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
|
|
- '(以 /str 作为命令选项),或重新生成 VS 项目。
|
|
|
- '''<summary>
|
|
|
- ''' 一个强类型的资源类,用于查找本地化的字符串等。
|
|
|
- '''</summary>
|
|
|
- <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0"), _
|
|
|
- Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
- Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
|
|
- Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
|
|
- Friend Module Resources
|
|
|
-
|
|
|
- Private resourceMan As Global.System.Resources.ResourceManager
|
|
|
-
|
|
|
- Private resourceCulture As Global.System.Globalization.CultureInfo
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 返回此类使用的缓存的 ResourceManager 实例。
|
|
|
- '''</summary>
|
|
|
- <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
|
|
- Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
|
|
- Get
|
|
|
- If Object.ReferenceEquals(resourceMan, Nothing) Then
|
|
|
- Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("PCL.Resources", GetType(Resources).Assembly)
|
|
|
- resourceMan = temp
|
|
|
+ Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
|
|
+
|
|
|
+#Region "My.Settings 自动保存功能"
|
|
|
+#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)> _
|
|
|
+ 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
|
|
|
- Return resourceMan
|
|
|
- End Get
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 重写当前线程的 CurrentUICulture 属性,对
|
|
|
- ''' 使用此强类型资源类的所有资源查找执行重写。
|
|
|
- '''</summary>
|
|
|
- <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
|
|
- Friend Property Culture() As Global.System.Globalization.CultureInfo
|
|
|
- Get
|
|
|
- Return resourceCulture
|
|
|
- End Get
|
|
|
- Set
|
|
|
- resourceCulture = value
|
|
|
- End Set
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property Custom() As Byte()
|
|
|
- Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("Custom", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
- End Get
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property Dialogs() As Byte()
|
|
|
- Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("Dialogs", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
- End Get
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property ForgeInstaller() As Byte()
|
|
|
- Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("ForgeInstaller", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
- End Get
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property Help() As Byte()
|
|
|
- Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("Help", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
- End Get
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property Imazen_WebP() As Byte()
|
|
|
- Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("Imazen_WebP", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
- End Get
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property JavaWrapper() As Byte()
|
|
|
- Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("JavaWrapper", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
- End Get
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property Json() As Byte()
|
|
|
- Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("Json", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
- End Get
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property libwebp64() As Byte()
|
|
|
- Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("libwebp64", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
- End Get
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property ModData() As Byte()
|
|
|
- Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("ModData", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
- End Get
|
|
|
- End Property
|
|
|
-
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property NAudio() As Byte()
|
|
|
- Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("NAudio", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
- End Get
|
|
|
- End Property
|
|
|
+#End If
|
|
|
+ Return defaultInstance
|
|
|
+ End Get
|
|
|
+ End Property
|
|
|
+End Class
|
|
|
+
|
|
|
+Namespace My
|
|
|
+
|
|
|
+ <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
|
|
+ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
+ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
|
|
+ Friend Module MySettingsProperty
|
|
|
|
|
|
- '''<summary>
|
|
|
- ''' 查找 System.Byte[] 类型的本地化资源。
|
|
|
- '''</summary>
|
|
|
- Friend ReadOnly Property Transformer() As Byte()
|
|
|
+ <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
|
|
+ Friend ReadOnly Property Settings() As Global.PCL.MySettings
|
|
|
Get
|
|
|
- Dim obj As Object = ResourceManager.GetObject("Transformer", resourceCulture)
|
|
|
- Return CType(obj,Byte())
|
|
|
+ Return Global.PCL.MySettings.Default
|
|
|
End Get
|
|
|
End Property
|
|
|
End Module
|
|
|
-End Namespace
|
|
|
+End Namespace
|