PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/VBVstoExcelWorkbook/My Project/Settings.Designer.vb

#
Visual Basic | 82 lines | 59 code | 14 blank | 9 comment | 0 complexity | c24c248c8962c195770bce6204c13c53 MD5 | raw file
 1'------------------------------------------------------------------------------
 2' <auto-generated>
 3'     This code was generated by a tool.
 4'     Runtime Version:2.0.50727.1873
 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
11Option Strict On
12Option Explicit On
13
14
15
16<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
17 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0"),  _
18 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
19Partial Friend NotInheritable Class MySettings
20    Inherits Global.System.Configuration.ApplicationSettingsBase
21    
22    Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings),MySettings)
23    
24#Region "My.Settings Auto-Save Functionality"
25#If _MyType = "WindowsForms" Then
26    Private Shared addedHandler As Boolean
27
28    Private Shared addedHandlerLockObject As New Object
29
30    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
31    Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
32        If My.Application.SaveMySettingsOnExit Then
33            My.Settings.Save()
34        End If
35    End Sub
36#End If
37#End Region
38    
39    Public Shared ReadOnly Property [Default]() As MySettings
40        Get
41            
42#If _MyType = "WindowsForms" Then
43               If Not addedHandler Then
44                    SyncLock addedHandlerLockObject
45                        If Not addedHandler Then
46                            AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
47                            addedHandler = True
48                        End If
49                    End SyncLock
50                End If
51#End If
52            Return defaultInstance
53        End Get
54    End Property
55    
56    <Global.System.Configuration.ApplicationScopedSettingAttribute(), _
57     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
58     Global.System.Configuration.SpecialSettingAttribute(Global.System.Configuration.SpecialSetting.ConnectionString), _
59     Global.System.Configuration.DefaultSettingValueAttribute("Data Source=localhost;Initial Catalog=SQLServer2005DB;User ID=HelloWorld;Passwo" & _
60        "rd=111111")> _
61    Public ReadOnly Property SchoolConnectionString() As String
62        Get
63            Return CType(Me("SchoolConnectionString"), String)
64        End Get
65    End Property
66End Class
67
68Namespace My
69    
70    <Global.Microsoft.VisualBasic.HideModuleNameAttribute(),  _
71     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
72     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()>  _
73    Friend Module MySettingsProperty
74        
75        <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")>  _
76        Friend ReadOnly Property Settings() As Global.VBVstoExcelWorkbook.MySettings
77            Get
78                Return Global.VBVstoExcelWorkbook.MySettings.Default
79            End Get
80        End Property
81    End Module
82End Namespace