|
@@ -1,10 +1,10 @@
|
1
|
1
|
'------------------------------------------------------------------------------
|
2
|
2
|
' <auto-generated>
|
3
|
|
-' This code was generated by a tool.
|
4
|
|
-' Runtime Version:4.0.30319.42000
|
|
3
|
+' 這段程式碼是由工具產生的。
|
|
4
|
+' 執行階段版本:4.0.30319.42000
|
5
|
5
|
'
|
6
|
|
-' Changes to this file may cause incorrect behavior and will be lost if
|
7
|
|
-' the code is regenerated.
|
|
6
|
+' 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
|
|
7
|
+' 變更將會遺失。
|
8
|
8
|
' </auto-generated>
|
9
|
9
|
'------------------------------------------------------------------------------
|
10
|
10
|
|
|
@@ -13,42 +13,42 @@ Option Explicit On
|
13
|
13
|
|
14
|
14
|
|
15
|
15
|
Namespace My
|
16
|
|
-
|
17
|
|
- <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
18
|
|
- Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
|
19
|
|
- Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
|
16
|
+
|
|
17
|
+ <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
|
18
|
+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0"), _
|
|
19
|
+ Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
20
|
20
|
Partial Friend NotInheritable Class MySettings
|
21
|
21
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
22
|
|
-
|
23
|
|
- Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
|
24
|
|
-
|
25
|
|
-#Region "My.Settings Auto-Save Functionality"
|
|
22
|
+
|
|
23
|
+ Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
|
24
|
+
|
|
25
|
+#Region "My.Settings 自動儲存功能"
|
26
|
26
|
#If _MyType = "WindowsForms" Then
|
27
|
|
- Private Shared addedHandler As Boolean
|
|
27
|
+ Private Shared addedHandler As Boolean
|
28
|
28
|
|
29
|
|
- Private Shared addedHandlerLockObject As New Object
|
|
29
|
+ Private Shared addedHandlerLockObject As New Object
|
30
|
30
|
|
31
|
|
- <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
32
|
|
- Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
33
|
|
- If My.Application.SaveMySettingsOnExit Then
|
34
|
|
- My.Settings.Save()
|
35
|
|
- End If
|
36
|
|
- End Sub
|
|
31
|
+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
|
32
|
+ Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
|
|
33
|
+ If My.Application.SaveMySettingsOnExit Then
|
|
34
|
+ My.Settings.Save()
|
|
35
|
+ End If
|
|
36
|
+ End Sub
|
37
|
37
|
#End If
|
38
|
38
|
#End Region
|
39
|
|
-
|
|
39
|
+
|
40
|
40
|
Public Shared ReadOnly Property [Default]() As MySettings
|
41
|
41
|
Get
|
42
|
|
-
|
|
42
|
+
|
43
|
43
|
#If _MyType = "WindowsForms" Then
|
44
|
|
- If Not addedHandler Then
|
45
|
|
- SyncLock addedHandlerLockObject
|
46
|
|
- If Not addedHandler Then
|
47
|
|
- AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
48
|
|
- addedHandler = True
|
49
|
|
- End If
|
50
|
|
- End SyncLock
|
51
|
|
- End If
|
|
44
|
+ If Not addedHandler Then
|
|
45
|
+ SyncLock addedHandlerLockObject
|
|
46
|
+ If Not addedHandler Then
|
|
47
|
+ AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
|
48
|
+ addedHandler = True
|
|
49
|
+ End If
|
|
50
|
+ End SyncLock
|
|
51
|
+ End If
|
52
|
52
|
#End If
|
53
|
53
|
Return defaultInstance
|
54
|
54
|
End Get
|
|
@@ -57,13 +57,13 @@ Namespace My
|
57
|
57
|
End Namespace
|
58
|
58
|
|
59
|
59
|
Namespace My
|
60
|
|
-
|
61
|
|
- <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
62
|
|
- Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
63
|
|
- Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
|
60
|
+
|
|
61
|
+ <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
|
62
|
+ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
63
|
+ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
64
|
64
|
Friend Module MySettingsProperty
|
65
|
|
-
|
66
|
|
- <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
|
65
|
+
|
|
66
|
+ <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
67
|
67
|
Friend ReadOnly Property Settings() As Global.SYS_UPDATE.My.MySettings
|
68
|
68
|
Get
|
69
|
69
|
Return Global.SYS_UPDATE.My.MySettings.Default
|