Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Settings.Designer.vb 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. '------------------------------------------------------------------------------
  2. ' <auto-generated>
  3. ' 這段程式碼是由工具產生的。
  4. '
  5. ' 變更這個檔案可能會導致不正確的行為,而且如果已重新產生
  6. ' 程式碼,變更將會遺失。
  7. ' </auto-generated>
  8. '------------------------------------------------------------------------------
  9. Option Strict On
  10. Option Explicit On
  11. Namespace My
  12. <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
  13. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), _
  14. Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
  15. Partial Friend NotInheritable Class MySettings
  16. Inherits Global.System.Configuration.ApplicationSettingsBase
  17. Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
  18. #Region "My.Settings Auto-Save Functionality"
  19. #If _MyType = "WindowsForms" Then
  20. Private Shared addedHandler As Boolean
  21. Private Shared addedHandlerLockObject As New Object
  22. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
  23. Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
  24. If My.Application.SaveMySettingsOnExit Then
  25. My.Settings.Save()
  26. End If
  27. End Sub
  28. #End If
  29. #End Region
  30. Public Shared ReadOnly Property [Default]() As MySettings
  31. Get
  32. #If _MyType = "WindowsForms" Then
  33. If Not addedHandler Then
  34. SyncLock addedHandlerLockObject
  35. If Not addedHandler Then
  36. AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
  37. addedHandler = True
  38. End If
  39. End SyncLock
  40. End If
  41. #End If
  42. Return defaultInstance
  43. End Get
  44. End Property
  45. End Class
  46. End Namespace
  47. Namespace My
  48. <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
  49. Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  50. Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
  51. Friend Module MySettingsProperty
  52. <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
  53. Friend ReadOnly Property Settings() As Global.ExcelWebAddIn1Web.My.MySettings
  54. Get
  55. Return Global.ExcelWebAddIn1Web.My.MySettings.Default
  56. End Get
  57. End Property
  58. End Module
  59. End Namespace