/Source Code/PowerSong/My Project/Settings.Designer.vb

# · Visual Basic · 86 lines · 63 code · 14 blank · 9 comment · 0 complexity · df10865c096dc71078b3c6c6dbc58fd0 MD5 · raw file

  1. '------------------------------------------------------------------------------
  2. ' <auto-generated>
  3. ' This code was generated by a tool.
  4. ' Runtime Version:4.0.30319.1
  5. '
  6. ' Changes to this file may cause incorrect behavior and will be lost if
  7. ' the code is regenerated.
  8. ' </auto-generated>
  9. '------------------------------------------------------------------------------
  10. Option Strict On
  11. Option Explicit On
  12. Namespace My
  13. <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
  14. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), _
  15. Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
  16. Partial Friend NotInheritable Class MySettings
  17. Inherits Global.System.Configuration.ApplicationSettingsBase
  18. Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
  19. #Region "My.Settings Auto-Save Functionality"
  20. #If _MyType = "WindowsForms" Then
  21. Private Shared addedHandler As Boolean
  22. Private Shared addedHandlerLockObject As New Object
  23. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
  24. Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
  25. If My.Application.SaveMySettingsOnExit Then
  26. My.Settings.Save()
  27. End If
  28. End Sub
  29. #End If
  30. #End Region
  31. Public Shared ReadOnly Property [Default]() As MySettings
  32. Get
  33. #If _MyType = "WindowsForms" Then
  34. If Not addedHandler Then
  35. SyncLock addedHandlerLockObject
  36. If Not addedHandler Then
  37. AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
  38. addedHandler = True
  39. End If
  40. End SyncLock
  41. End If
  42. #End If
  43. Return defaultInstance
  44. End Get
  45. End Property
  46. <Global.System.Configuration.UserScopedSettingAttribute(), _
  47. Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  48. Global.System.Configuration.DefaultSettingValueAttribute("<?xml version=""1.0"" encoding=""utf-16""?>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"<ArrayOfString xmlns:xsi=""http://www.w3."& _
  49. "org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" />")> _
  50. Public Property DisabledFunctionality() As Global.System.Collections.Specialized.StringCollection
  51. Get
  52. Return CType(Me("DisabledFunctionality"),Global.System.Collections.Specialized.StringCollection)
  53. End Get
  54. Set
  55. Me("DisabledFunctionality") = value
  56. End Set
  57. End Property
  58. End Class
  59. End Namespace
  60. Namespace My
  61. <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
  62. Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  63. Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
  64. Friend Module MySettingsProperty
  65. <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
  66. Friend ReadOnly Property Settings() As Global.PowerSong.UserInterface.My.MySettings
  67. Get
  68. Return Global.PowerSong.UserInterface.My.MySettings.Default
  69. End Get
  70. End Property
  71. End Module
  72. End Namespace