Settings.Designer.vb 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. '------------------------------------------------------------------------------
  2. ' <auto-generated>
  3. ' Этот код создан программой.
  4. ' Исполняемая версия:4.0.30319.42000
  5. '
  6. ' Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. ' повторной генерации кода.
  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", "16.4.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"
  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(sender As Global.System.Object, 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.ApplicationScopedSettingAttribute(), _
  47. Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  48. Global.System.Configuration.SpecialSettingAttribute(Global.System.Configuration.SpecialSetting.ConnectionString), _
  49. Global.System.Configuration.DefaultSettingValueAttribute("Data Source=CLASS31000;Initial Catalog=BD_Fam_Postanogov;Integrated Security=True"& _
  50. "")> _
  51. Public ReadOnly Property BD_Fam_PostanogovConnectionString() As String
  52. Get
  53. Return CType(Me("BD_Fam_PostanogovConnectionString"),String)
  54. End Get
  55. End Property
  56. End Class
  57. End Namespace
  58. Namespace My
  59. <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
  60. Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  61. Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
  62. Friend Module MySettingsProperty
  63. <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
  64. Friend ReadOnly Property Settings() As Global.Example.My.MySettings
  65. Get
  66. Return Global.Example.My.MySettings.Default
  67. End Get
  68. End Property
  69. End Module
  70. End Namespace