PageRenderTime 40ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/WP7.1/Templates/VB/WPCloud.SQL.ACS/WindowsPhoneCloud.Web/My Project/Settings.Designer.vb

#
Visual Basic | 89 lines | 51 code | 14 blank | 24 comment | 0 complexity | fbb3d58b3ccaa346d0270aff361c768e MD5 | raw file
  1. ' ----------------------------------------------------------------------------------
  2. ' Microsoft Developer & Platform Evangelism
  3. '
  4. ' Copyright (c) Microsoft Corporation. All rights reserved.
  5. '
  6. ' THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
  7. ' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
  8. ' OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
  9. ' ----------------------------------------------------------------------------------
  10. ' The example companies, organizations, products, domain names,
  11. ' e-mail addresses, logos, people, places, and events depicted
  12. ' herein are fictitious. No association with any real company,
  13. ' organization, product, domain name, email address, logo, person,
  14. ' places, or events is intended or should be inferred.
  15. ' ----------------------------------------------------------------------------------
  16. '------------------------------------------------------------------------------
  17. ' <auto-generated>
  18. ' This code was generated by a tool.
  19. ' Runtime Version:4.0.30319.235
  20. '
  21. ' Changes to this file may cause incorrect behavior and will be lost if
  22. ' the code is regenerated.
  23. ' </auto-generated>
  24. '------------------------------------------------------------------------------
  25. Option Strict On
  26. Option Explicit On
  27. Namespace My
  28. <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
  29. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), _
  30. Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
  31. Partial Friend NotInheritable Class MySettings
  32. Inherits Global.System.Configuration.ApplicationSettingsBase
  33. Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
  34. #Region "My.Settings Auto-Save Functionality"
  35. #If _MyType = "WindowsForms" Then
  36. Private Shared addedHandler As Boolean
  37. Private Shared addedHandlerLockObject As New Object
  38. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
  39. Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
  40. If My.Application.SaveMySettingsOnExit Then
  41. My.Settings.Save()
  42. End If
  43. End Sub
  44. #End If
  45. #End Region
  46. Public Shared ReadOnly Property [Default]() As MySettings
  47. Get
  48. #If _MyType = "WindowsForms" Then
  49. If Not addedHandler Then
  50. SyncLock addedHandlerLockObject
  51. If Not addedHandler Then
  52. AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
  53. addedHandler = True
  54. End If
  55. End SyncLock
  56. End If
  57. #End If
  58. Return defaultInstance
  59. End Get
  60. End Property
  61. End Class
  62. End Namespace
  63. Namespace My
  64. <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
  65. Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  66. Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
  67. Friend Module MySettingsProperty
  68. <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
  69. Friend ReadOnly Property Settings() As Global.Microsoft.Samples.WindowsPhoneCloud.Web.My.MySettings
  70. Get
  71. Return Global.Microsoft.Samples.WindowsPhoneCloud.Web.My.MySettings.Default
  72. End Get
  73. End Property
  74. End Module
  75. End Namespace