Settings.Designer.vb
上传用户:szltgg
上传日期:2019-05-16
资源大小:604k
文件大小:3k
源码类别:

Telnet服务器

开发平台:

C#

  1. '------------------------------------------------------------------------------
  2. ' <auto-generated>
  3. '     This code was generated by a tool.
  4. '     Runtime Version:2.0.50727.832
  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", "8.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.         
  19.         Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
  20.         
  21. #Region "My.Settings Auto-Save Functionality"
  22. #If _MyType = "WindowsForms" Then
  23.         Private Shared addedHandler As Boolean
  24.         Private Shared addedHandlerLockObject As New Object
  25.         <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
  26.         Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
  27.             If My.Application.SaveMySettingsOnExit Then
  28.                 My.Settings.Save()
  29.             End If
  30.         End Sub
  31. #End If
  32. #End Region
  33.         
  34.         Public Shared ReadOnly Property [Default]() As MySettings
  35.             Get
  36.                 
  37. #If _MyType = "WindowsForms" Then
  38.                    If Not addedHandler Then
  39.                         SyncLock addedHandlerLockObject
  40.                             If Not addedHandler Then
  41.                                 AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
  42.                                 addedHandler = True
  43.                             End If
  44.                         End SyncLock
  45.                     End If
  46. #End If
  47.                 Return defaultInstance
  48.             End Get
  49.         End Property
  50.     End Class
  51. End Namespace
  52. Namespace My
  53.     
  54.     <Global.Microsoft.VisualBasic.HideModuleNameAttribute(),  _
  55.      Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
  56.      Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()>  _
  57.     Friend Module MySettingsProperty
  58.         
  59.         <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")>  _
  60.         Friend ReadOnly Property Settings() As Global.Visual_Basic_Usage_Example.My.MySettings
  61.             Get
  62.                 Return Global.Visual_Basic_Usage_Example.My.MySettings.Default
  63.             End Get
  64.         End Property
  65.     End Module
  66. End Namespace