PageRenderTime 248ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 2ms

/Source Code/SongDatabase/Data.Designer.vb

#
Visual Basic | 4521 lines | 3872 code | 565 blank | 84 comment | 30 complexity | 7c67175b9dcda14cdf5578321e65d9eb MD5 | raw file

Large files files are truncated, but you can click here to view the full 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 Off
  11. Option Explicit On
  12. '''<summary>
  13. '''Represents a strongly typed in-memory cache of data.
  14. '''</summary>
  15. <Global.System.Serializable(), _
  16. Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  17. Global.System.ComponentModel.ToolboxItem(true), _
  18. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema"), _
  19. Global.System.Xml.Serialization.XmlRootAttribute("Data"), _
  20. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")> _
  21. Partial Public Class Data
  22. Inherits Global.System.Data.DataSet
  23. Private tableSettings As SettingsDataTable
  24. Private tableSongs As SongsDataTable
  25. Private tableStyles As StylesDataTable
  26. Private tableBibles As BiblesDataTable
  27. Private tableCategories As CategoriesDataTable
  28. Private tableSongCategories As SongCategoriesDataTable
  29. Private tableProjectlets As ProjectletsDataTable
  30. Private tableLicenses As LicensesDataTable
  31. Private relationFK_Categories_SongCategories As Global.System.Data.DataRelation
  32. Private relationFK_Songs_SongCategories As Global.System.Data.DataRelation
  33. Private relationFK_Styles_Projectlets As Global.System.Data.DataRelation
  34. Private relationLicenses_Songs As Global.System.Data.DataRelation
  35. Private _schemaSerializationMode As Global.System.Data.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
  36. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  37. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  38. Public Sub New()
  39. MyBase.New
  40. Me.BeginInit
  41. Me.InitClass
  42. Dim schemaChangedHandler As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  43. AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
  44. AddHandler MyBase.Relations.CollectionChanged, schemaChangedHandler
  45. Me.EndInit
  46. End Sub
  47. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  48. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  49. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  50. MyBase.New(info, context, false)
  51. If (Me.IsBinarySerialized(info, context) = true) Then
  52. Me.InitVars(false)
  53. Dim schemaChangedHandler1 As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  54. AddHandler Me.Tables.CollectionChanged, schemaChangedHandler1
  55. AddHandler Me.Relations.CollectionChanged, schemaChangedHandler1
  56. Return
  57. End If
  58. Dim strSchema As String = CType(info.GetValue("XmlSchema", GetType(String)),String)
  59. If (Me.DetermineSchemaSerializationMode(info, context) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
  60. Dim ds As Global.System.Data.DataSet = New Global.System.Data.DataSet()
  61. ds.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
  62. If (Not (ds.Tables("Settings")) Is Nothing) Then
  63. MyBase.Tables.Add(New SettingsDataTable(ds.Tables("Settings")))
  64. End If
  65. If (Not (ds.Tables("Songs")) Is Nothing) Then
  66. MyBase.Tables.Add(New SongsDataTable(ds.Tables("Songs")))
  67. End If
  68. If (Not (ds.Tables("Styles")) Is Nothing) Then
  69. MyBase.Tables.Add(New StylesDataTable(ds.Tables("Styles")))
  70. End If
  71. If (Not (ds.Tables("Bibles")) Is Nothing) Then
  72. MyBase.Tables.Add(New BiblesDataTable(ds.Tables("Bibles")))
  73. End If
  74. If (Not (ds.Tables("Categories")) Is Nothing) Then
  75. MyBase.Tables.Add(New CategoriesDataTable(ds.Tables("Categories")))
  76. End If
  77. If (Not (ds.Tables("SongCategories")) Is Nothing) Then
  78. MyBase.Tables.Add(New SongCategoriesDataTable(ds.Tables("SongCategories")))
  79. End If
  80. If (Not (ds.Tables("Projectlets")) Is Nothing) Then
  81. MyBase.Tables.Add(New ProjectletsDataTable(ds.Tables("Projectlets")))
  82. End If
  83. If (Not (ds.Tables("Licenses")) Is Nothing) Then
  84. MyBase.Tables.Add(New LicensesDataTable(ds.Tables("Licenses")))
  85. End If
  86. Me.DataSetName = ds.DataSetName
  87. Me.Prefix = ds.Prefix
  88. Me.Namespace = ds.Namespace
  89. Me.Locale = ds.Locale
  90. Me.CaseSensitive = ds.CaseSensitive
  91. Me.EnforceConstraints = ds.EnforceConstraints
  92. Me.Merge(ds, false, Global.System.Data.MissingSchemaAction.Add)
  93. Me.InitVars
  94. Else
  95. Me.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
  96. End If
  97. Me.GetSerializationData(info, context)
  98. Dim schemaChangedHandler As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  99. AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
  100. AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
  101. End Sub
  102. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  103. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  104. Global.System.ComponentModel.Browsable(false), _
  105. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  106. Public ReadOnly Property Settings() As SettingsDataTable
  107. Get
  108. Return Me.tableSettings
  109. End Get
  110. End Property
  111. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  112. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  113. Global.System.ComponentModel.Browsable(false), _
  114. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  115. Public ReadOnly Property Songs() As SongsDataTable
  116. Get
  117. Return Me.tableSongs
  118. End Get
  119. End Property
  120. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  121. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  122. Global.System.ComponentModel.Browsable(false), _
  123. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  124. Public ReadOnly Property Styles() As StylesDataTable
  125. Get
  126. Return Me.tableStyles
  127. End Get
  128. End Property
  129. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  130. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  131. Global.System.ComponentModel.Browsable(false), _
  132. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  133. Public ReadOnly Property Bibles() As BiblesDataTable
  134. Get
  135. Return Me.tableBibles
  136. End Get
  137. End Property
  138. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  139. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  140. Global.System.ComponentModel.Browsable(false), _
  141. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  142. Public ReadOnly Property Categories() As CategoriesDataTable
  143. Get
  144. Return Me.tableCategories
  145. End Get
  146. End Property
  147. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  148. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  149. Global.System.ComponentModel.Browsable(false), _
  150. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  151. Public ReadOnly Property SongCategories() As SongCategoriesDataTable
  152. Get
  153. Return Me.tableSongCategories
  154. End Get
  155. End Property
  156. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  157. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  158. Global.System.ComponentModel.Browsable(false), _
  159. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  160. Public ReadOnly Property Projectlets() As ProjectletsDataTable
  161. Get
  162. Return Me.tableProjectlets
  163. End Get
  164. End Property
  165. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  166. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  167. Global.System.ComponentModel.Browsable(false), _
  168. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  169. Public ReadOnly Property Licenses() As LicensesDataTable
  170. Get
  171. Return Me.tableLicenses
  172. End Get
  173. End Property
  174. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  175. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  176. Global.System.ComponentModel.BrowsableAttribute(true), _
  177. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Visible)> _
  178. Public Overrides Property SchemaSerializationMode() As Global.System.Data.SchemaSerializationMode
  179. Get
  180. Return Me._schemaSerializationMode
  181. End Get
  182. Set
  183. Me._schemaSerializationMode = value
  184. End Set
  185. End Property
  186. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  187. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  188. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  189. Public Shadows ReadOnly Property Tables() As Global.System.Data.DataTableCollection
  190. Get
  191. Return MyBase.Tables
  192. End Get
  193. End Property
  194. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  195. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  196. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  197. Public Shadows ReadOnly Property Relations() As Global.System.Data.DataRelationCollection
  198. Get
  199. Return MyBase.Relations
  200. End Get
  201. End Property
  202. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  203. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  204. Protected Overrides Sub InitializeDerivedDataSet()
  205. Me.BeginInit
  206. Me.InitClass
  207. Me.EndInit
  208. End Sub
  209. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  210. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  211. Public Overrides Function Clone() As Global.System.Data.DataSet
  212. Dim cln As Data = CType(MyBase.Clone,Data)
  213. cln.InitVars
  214. cln.SchemaSerializationMode = Me.SchemaSerializationMode
  215. Return cln
  216. End Function
  217. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  218. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  219. Protected Overrides Function ShouldSerializeTables() As Boolean
  220. Return false
  221. End Function
  222. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  223. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  224. Protected Overrides Function ShouldSerializeRelations() As Boolean
  225. Return false
  226. End Function
  227. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  228. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  229. Protected Overrides Sub ReadXmlSerializable(ByVal reader As Global.System.Xml.XmlReader)
  230. If (Me.DetermineSchemaSerializationMode(reader) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
  231. Me.Reset
  232. Dim ds As Global.System.Data.DataSet = New Global.System.Data.DataSet()
  233. ds.ReadXml(reader)
  234. If (Not (ds.Tables("Settings")) Is Nothing) Then
  235. MyBase.Tables.Add(New SettingsDataTable(ds.Tables("Settings")))
  236. End If
  237. If (Not (ds.Tables("Songs")) Is Nothing) Then
  238. MyBase.Tables.Add(New SongsDataTable(ds.Tables("Songs")))
  239. End If
  240. If (Not (ds.Tables("Styles")) Is Nothing) Then
  241. MyBase.Tables.Add(New StylesDataTable(ds.Tables("Styles")))
  242. End If
  243. If (Not (ds.Tables("Bibles")) Is Nothing) Then
  244. MyBase.Tables.Add(New BiblesDataTable(ds.Tables("Bibles")))
  245. End If
  246. If (Not (ds.Tables("Categories")) Is Nothing) Then
  247. MyBase.Tables.Add(New CategoriesDataTable(ds.Tables("Categories")))
  248. End If
  249. If (Not (ds.Tables("SongCategories")) Is Nothing) Then
  250. MyBase.Tables.Add(New SongCategoriesDataTable(ds.Tables("SongCategories")))
  251. End If
  252. If (Not (ds.Tables("Projectlets")) Is Nothing) Then
  253. MyBase.Tables.Add(New ProjectletsDataTable(ds.Tables("Projectlets")))
  254. End If
  255. If (Not (ds.Tables("Licenses")) Is Nothing) Then
  256. MyBase.Tables.Add(New LicensesDataTable(ds.Tables("Licenses")))
  257. End If
  258. Me.DataSetName = ds.DataSetName
  259. Me.Prefix = ds.Prefix
  260. Me.Namespace = ds.Namespace
  261. Me.Locale = ds.Locale
  262. Me.CaseSensitive = ds.CaseSensitive
  263. Me.EnforceConstraints = ds.EnforceConstraints
  264. Me.Merge(ds, false, Global.System.Data.MissingSchemaAction.Add)
  265. Me.InitVars
  266. Else
  267. Me.ReadXml(reader)
  268. Me.InitVars
  269. End If
  270. End Sub
  271. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  272. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  273. Protected Overrides Function GetSchemaSerializable() As Global.System.Xml.Schema.XmlSchema
  274. Dim stream As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  275. Me.WriteXmlSchema(New Global.System.Xml.XmlTextWriter(stream, Nothing))
  276. stream.Position = 0
  277. Return Global.System.Xml.Schema.XmlSchema.Read(New Global.System.Xml.XmlTextReader(stream), Nothing)
  278. End Function
  279. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  280. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  281. Friend Overloads Sub InitVars()
  282. Me.InitVars(true)
  283. End Sub
  284. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  285. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  286. Friend Overloads Sub InitVars(ByVal initTable As Boolean)
  287. Me.tableSettings = CType(MyBase.Tables("Settings"),SettingsDataTable)
  288. If (initTable = true) Then
  289. If (Not (Me.tableSettings) Is Nothing) Then
  290. Me.tableSettings.InitVars
  291. End If
  292. End If
  293. Me.tableSongs = CType(MyBase.Tables("Songs"),SongsDataTable)
  294. If (initTable = true) Then
  295. If (Not (Me.tableSongs) Is Nothing) Then
  296. Me.tableSongs.InitVars
  297. End If
  298. End If
  299. Me.tableStyles = CType(MyBase.Tables("Styles"),StylesDataTable)
  300. If (initTable = true) Then
  301. If (Not (Me.tableStyles) Is Nothing) Then
  302. Me.tableStyles.InitVars
  303. End If
  304. End If
  305. Me.tableBibles = CType(MyBase.Tables("Bibles"),BiblesDataTable)
  306. If (initTable = true) Then
  307. If (Not (Me.tableBibles) Is Nothing) Then
  308. Me.tableBibles.InitVars
  309. End If
  310. End If
  311. Me.tableCategories = CType(MyBase.Tables("Categories"),CategoriesDataTable)
  312. If (initTable = true) Then
  313. If (Not (Me.tableCategories) Is Nothing) Then
  314. Me.tableCategories.InitVars
  315. End If
  316. End If
  317. Me.tableSongCategories = CType(MyBase.Tables("SongCategories"),SongCategoriesDataTable)
  318. If (initTable = true) Then
  319. If (Not (Me.tableSongCategories) Is Nothing) Then
  320. Me.tableSongCategories.InitVars
  321. End If
  322. End If
  323. Me.tableProjectlets = CType(MyBase.Tables("Projectlets"),ProjectletsDataTable)
  324. If (initTable = true) Then
  325. If (Not (Me.tableProjectlets) Is Nothing) Then
  326. Me.tableProjectlets.InitVars
  327. End If
  328. End If
  329. Me.tableLicenses = CType(MyBase.Tables("Licenses"),LicensesDataTable)
  330. If (initTable = true) Then
  331. If (Not (Me.tableLicenses) Is Nothing) Then
  332. Me.tableLicenses.InitVars
  333. End If
  334. End If
  335. Me.relationFK_Categories_SongCategories = Me.Relations("FK_Categories_SongCategories")
  336. Me.relationFK_Songs_SongCategories = Me.Relations("FK_Songs_SongCategories")
  337. Me.relationFK_Styles_Projectlets = Me.Relations("FK_Styles_Projectlets")
  338. Me.relationLicenses_Songs = Me.Relations("Licenses_Songs")
  339. End Sub
  340. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  341. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  342. Private Sub InitClass()
  343. Me.DataSetName = "Data"
  344. Me.Prefix = ""
  345. Me.Namespace = "http://tempuri.org/Data.xsd"
  346. Me.EnforceConstraints = true
  347. Me.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
  348. Me.tableSettings = New SettingsDataTable()
  349. MyBase.Tables.Add(Me.tableSettings)
  350. Me.tableSongs = New SongsDataTable()
  351. MyBase.Tables.Add(Me.tableSongs)
  352. Me.tableStyles = New StylesDataTable()
  353. MyBase.Tables.Add(Me.tableStyles)
  354. Me.tableBibles = New BiblesDataTable()
  355. MyBase.Tables.Add(Me.tableBibles)
  356. Me.tableCategories = New CategoriesDataTable()
  357. MyBase.Tables.Add(Me.tableCategories)
  358. Me.tableSongCategories = New SongCategoriesDataTable()
  359. MyBase.Tables.Add(Me.tableSongCategories)
  360. Me.tableProjectlets = New ProjectletsDataTable()
  361. MyBase.Tables.Add(Me.tableProjectlets)
  362. Me.tableLicenses = New LicensesDataTable()
  363. MyBase.Tables.Add(Me.tableLicenses)
  364. Dim fkc As Global.System.Data.ForeignKeyConstraint
  365. fkc = New Global.System.Data.ForeignKeyConstraint("FK_Categories_SongCategories", New Global.System.Data.DataColumn() {Me.tableCategories.CategoryIDColumn}, New Global.System.Data.DataColumn() {Me.tableSongCategories.CategoryIDColumn})
  366. Me.tableSongCategories.Constraints.Add(fkc)
  367. fkc.AcceptRejectRule = Global.System.Data.AcceptRejectRule.None
  368. fkc.DeleteRule = Global.System.Data.Rule.Cascade
  369. fkc.UpdateRule = Global.System.Data.Rule.Cascade
  370. fkc = New Global.System.Data.ForeignKeyConstraint("FK_Songs_SongCategories", New Global.System.Data.DataColumn() {Me.tableSongs.SongIDColumn}, New Global.System.Data.DataColumn() {Me.tableSongCategories.SongIDColumn})
  371. Me.tableSongCategories.Constraints.Add(fkc)
  372. fkc.AcceptRejectRule = Global.System.Data.AcceptRejectRule.None
  373. fkc.DeleteRule = Global.System.Data.Rule.Cascade
  374. fkc.UpdateRule = Global.System.Data.Rule.Cascade
  375. fkc = New Global.System.Data.ForeignKeyConstraint("FK_Styles_Projectlets", New Global.System.Data.DataColumn() {Me.tableStyles.StyleIDColumn}, New Global.System.Data.DataColumn() {Me.tableProjectlets.StyleIDColumn})
  376. Me.tableProjectlets.Constraints.Add(fkc)
  377. fkc.AcceptRejectRule = Global.System.Data.AcceptRejectRule.None
  378. fkc.DeleteRule = Global.System.Data.Rule.Cascade
  379. fkc.UpdateRule = Global.System.Data.Rule.Cascade
  380. Me.relationFK_Categories_SongCategories = New Global.System.Data.DataRelation("FK_Categories_SongCategories", New Global.System.Data.DataColumn() {Me.tableCategories.CategoryIDColumn}, New Global.System.Data.DataColumn() {Me.tableSongCategories.CategoryIDColumn}, false)
  381. Me.Relations.Add(Me.relationFK_Categories_SongCategories)
  382. Me.relationFK_Songs_SongCategories = New Global.System.Data.DataRelation("FK_Songs_SongCategories", New Global.System.Data.DataColumn() {Me.tableSongs.SongIDColumn}, New Global.System.Data.DataColumn() {Me.tableSongCategories.SongIDColumn}, false)
  383. Me.Relations.Add(Me.relationFK_Songs_SongCategories)
  384. Me.relationFK_Styles_Projectlets = New Global.System.Data.DataRelation("FK_Styles_Projectlets", New Global.System.Data.DataColumn() {Me.tableStyles.StyleIDColumn}, New Global.System.Data.DataColumn() {Me.tableProjectlets.StyleIDColumn}, false)
  385. Me.Relations.Add(Me.relationFK_Styles_Projectlets)
  386. Me.relationLicenses_Songs = New Global.System.Data.DataRelation("Licenses_Songs", New Global.System.Data.DataColumn() {Me.tableLicenses.LicenseIDColumn}, New Global.System.Data.DataColumn() {Me.tableSongs.LicenseIDColumn}, false)
  387. Me.Relations.Add(Me.relationLicenses_Songs)
  388. End Sub
  389. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  390. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  391. Private Function ShouldSerializeSettings() As Boolean
  392. Return false
  393. End Function
  394. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  395. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  396. Private Function ShouldSerializeSongs() As Boolean
  397. Return false
  398. End Function
  399. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  400. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  401. Private Function ShouldSerializeStyles() As Boolean
  402. Return false
  403. End Function
  404. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  405. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  406. Private Function ShouldSerializeBibles() As Boolean
  407. Return false
  408. End Function
  409. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  410. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  411. Private Function ShouldSerializeCategories() As Boolean
  412. Return false
  413. End Function
  414. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  415. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  416. Private Function ShouldSerializeSongCategories() As Boolean
  417. Return false
  418. End Function
  419. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  420. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  421. Private Function ShouldSerializeProjectlets() As Boolean
  422. Return false
  423. End Function
  424. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  425. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  426. Private Function ShouldSerializeLicenses() As Boolean
  427. Return false
  428. End Function
  429. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  430. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  431. Private Sub SchemaChanged(ByVal sender As Object, ByVal e As Global.System.ComponentModel.CollectionChangeEventArgs)
  432. If (e.Action = Global.System.ComponentModel.CollectionChangeAction.Remove) Then
  433. Me.InitVars
  434. End If
  435. End Sub
  436. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  437. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  438. Public Shared Function GetTypedDataSetSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  439. Dim ds As Data = New Data()
  440. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  441. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  442. Dim any As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  443. any.Namespace = ds.Namespace
  444. sequence.Items.Add(any)
  445. type.Particle = sequence
  446. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  447. If xs.Contains(dsSchema.TargetNamespace) Then
  448. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  449. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  450. Try
  451. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  452. dsSchema.Write(s1)
  453. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  454. Do While schemas.MoveNext
  455. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  456. s2.SetLength(0)
  457. schema.Write(s2)
  458. If (s1.Length = s2.Length) Then
  459. s1.Position = 0
  460. s2.Position = 0
  461. Do While ((s1.Position <> s1.Length) _
  462. AndAlso (s1.ReadByte = s2.ReadByte))
  463. Loop
  464. If (s1.Position = s1.Length) Then
  465. Return type
  466. End If
  467. End If
  468. Loop
  469. Finally
  470. If (Not (s1) Is Nothing) Then
  471. s1.Close
  472. End If
  473. If (Not (s2) Is Nothing) Then
  474. s2.Close
  475. End If
  476. End Try
  477. End If
  478. xs.Add(dsSchema)
  479. Return type
  480. End Function
  481. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  482. Public Delegate Sub SettingsRowChangeEventHandler(ByVal sender As Object, ByVal e As SettingsRowChangeEvent)
  483. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  484. Public Delegate Sub SongsRowChangeEventHandler(ByVal sender As Object, ByVal e As SongsRowChangeEvent)
  485. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  486. Public Delegate Sub StylesRowChangeEventHandler(ByVal sender As Object, ByVal e As StylesRowChangeEvent)
  487. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  488. Public Delegate Sub BiblesRowChangeEventHandler(ByVal sender As Object, ByVal e As BiblesRowChangeEvent)
  489. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  490. Public Delegate Sub CategoriesRowChangeEventHandler(ByVal sender As Object, ByVal e As CategoriesRowChangeEvent)
  491. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  492. Public Delegate Sub SongCategoriesRowChangeEventHandler(ByVal sender As Object, ByVal e As SongCategoriesRowChangeEvent)
  493. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  494. Public Delegate Sub ProjectletsRowChangeEventHandler(ByVal sender As Object, ByVal e As ProjectletsRowChangeEvent)
  495. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  496. Public Delegate Sub LicensesRowChangeEventHandler(ByVal sender As Object, ByVal e As LicensesRowChangeEvent)
  497. '''<summary>
  498. '''Represents the strongly named DataTable class.
  499. '''</summary>
  500. <Global.System.Serializable(), _
  501. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  502. Partial Public Class SettingsDataTable
  503. Inherits Global.System.Data.DataTable
  504. Implements Global.System.Collections.IEnumerable
  505. Private columnName As Global.System.Data.DataColumn
  506. Private columnValue As Global.System.Data.DataColumn
  507. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  508. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  509. Public Sub New()
  510. MyBase.New
  511. Me.TableName = "Settings"
  512. Me.BeginInit
  513. Me.InitClass
  514. Me.EndInit
  515. End Sub
  516. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  517. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  518. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  519. MyBase.New
  520. Me.TableName = table.TableName
  521. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  522. Me.CaseSensitive = table.CaseSensitive
  523. End If
  524. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  525. Me.Locale = table.Locale
  526. End If
  527. If (table.Namespace <> table.DataSet.Namespace) Then
  528. Me.Namespace = table.Namespace
  529. End If
  530. Me.Prefix = table.Prefix
  531. Me.MinimumCapacity = table.MinimumCapacity
  532. End Sub
  533. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  534. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  535. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  536. MyBase.New(info, context)
  537. Me.InitVars
  538. End Sub
  539. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  540. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  541. Public ReadOnly Property NameColumn() As Global.System.Data.DataColumn
  542. Get
  543. Return Me.columnName
  544. End Get
  545. End Property
  546. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  547. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  548. Public ReadOnly Property ValueColumn() As Global.System.Data.DataColumn
  549. Get
  550. Return Me.columnValue
  551. End Get
  552. End Property
  553. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  554. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  555. Global.System.ComponentModel.Browsable(false)> _
  556. Public ReadOnly Property Count() As Integer
  557. Get
  558. Return Me.Rows.Count
  559. End Get
  560. End Property
  561. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  562. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  563. Public Default ReadOnly Property Item(ByVal index As Integer) As SettingsRow
  564. Get
  565. Return CType(Me.Rows(index),SettingsRow)
  566. End Get
  567. End Property
  568. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  569. Public Event SettingsRowChanging As SettingsRowChangeEventHandler
  570. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  571. Public Event SettingsRowChanged As SettingsRowChangeEventHandler
  572. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  573. Public Event SettingsRowDeleting As SettingsRowChangeEventHandler
  574. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  575. Public Event SettingsRowDeleted As SettingsRowChangeEventHandler
  576. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  577. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  578. Public Overloads Sub AddSettingsRow(ByVal row As SettingsRow)
  579. Me.Rows.Add(row)
  580. End Sub
  581. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  582. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  583. Public Overloads Function AddSettingsRow(ByVal Name As String, ByVal Value As String) As SettingsRow
  584. Dim rowSettingsRow As SettingsRow = CType(Me.NewRow,SettingsRow)
  585. Dim columnValuesArray() As Object = New Object() {Name, Value}
  586. rowSettingsRow.ItemArray = columnValuesArray
  587. Me.Rows.Add(rowSettingsRow)
  588. Return rowSettingsRow
  589. End Function
  590. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  591. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  592. Public Function FindByName(ByVal Name As String) As SettingsRow
  593. Return CType(Me.Rows.Find(New Object() {Name}),SettingsRow)
  594. End Function
  595. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  596. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  597. Public Overridable Function GetEnumerator() As Global.System.Collections.IEnumerator Implements Global.System.Collections.IEnumerable.GetEnumerator
  598. Return Me.Rows.GetEnumerator
  599. End Function
  600. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  601. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  602. Public Overrides Function Clone() As Global.System.Data.DataTable
  603. Dim cln As SettingsDataTable = CType(MyBase.Clone,SettingsDataTable)
  604. cln.InitVars
  605. Return cln
  606. End Function
  607. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  608. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  609. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  610. Return New SettingsDataTable()
  611. End Function
  612. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  613. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  614. Friend Sub InitVars()
  615. Me.columnName = MyBase.Columns("Name")
  616. Me.columnValue = MyBase.Columns("Value")
  617. End Sub
  618. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  619. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  620. Private Sub InitClass()
  621. Me.columnName = New Global.System.Data.DataColumn("Name", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  622. MyBase.Columns.Add(Me.columnName)
  623. Me.columnValue = New Global.System.Data.DataColumn("Value", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  624. MyBase.Columns.Add(Me.columnValue)
  625. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnName}, true))
  626. Me.columnName.AllowDBNull = false
  627. Me.columnName.Unique = true
  628. End Sub
  629. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  630. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  631. Public Function NewSettingsRow() As SettingsRow
  632. Return CType(Me.NewRow,SettingsRow)
  633. End Function
  634. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  635. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  636. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  637. Return New SettingsRow(builder)
  638. End Function
  639. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  640. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  641. Protected Overrides Function GetRowType() As Global.System.Type
  642. Return GetType(SettingsRow)
  643. End Function
  644. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  645. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  646. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  647. MyBase.OnRowChanged(e)
  648. If (Not (Me.SettingsRowChangedEvent) Is Nothing) Then
  649. RaiseEvent SettingsRowChanged(Me, New SettingsRowChangeEvent(CType(e.Row,SettingsRow), e.Action))
  650. End If
  651. End Sub
  652. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  653. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  654. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  655. MyBase.OnRowChanging(e)
  656. If (Not (Me.SettingsRowChangingEvent) Is Nothing) Then
  657. RaiseEvent SettingsRowChanging(Me, New SettingsRowChangeEvent(CType(e.Row,SettingsRow), e.Action))
  658. End If
  659. End Sub
  660. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  661. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  662. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  663. MyBase.OnRowDeleted(e)
  664. If (Not (Me.SettingsRowDeletedEvent) Is Nothing) Then
  665. RaiseEvent SettingsRowDeleted(Me, New SettingsRowChangeEvent(CType(e.Row,SettingsRow), e.Action))
  666. End If
  667. End Sub
  668. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  669. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  670. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  671. MyBase.OnRowDeleting(e)
  672. If (Not (Me.SettingsRowDeletingEvent) Is Nothing) Then
  673. RaiseEvent SettingsRowDeleting(Me, New SettingsRowChangeEvent(CType(e.Row,SettingsRow), e.Action))
  674. End If
  675. End Sub
  676. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  677. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  678. Public Sub RemoveSettingsRow(ByVal row As SettingsRow)
  679. Me.Rows.Remove(row)
  680. End Sub
  681. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  682. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  683. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  684. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  685. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  686. Dim ds As Data = New Data()
  687. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  688. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  689. any1.MinOccurs = New Decimal(0)
  690. any1.MaxOccurs = Decimal.MaxValue
  691. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  692. sequence.Items.Add(any1)
  693. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  694. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  695. any2.MinOccurs = New Decimal(1)
  696. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  697. sequence.Items.Add(any2)
  698. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  699. attribute1.Name = "namespace"
  700. attribute1.FixedValue = ds.Namespace
  701. type.Attributes.Add(attribute1)
  702. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  703. attribute2.Name = "tableTypeName"
  704. attribute2.FixedValue = "SettingsDataTable"
  705. type.Attributes.Add(attribute2)
  706. type.Particle = sequence
  707. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  708. If xs.Contains(dsSchema.TargetNamespace) Then
  709. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  710. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  711. Try
  712. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  713. dsSchema.Write(s1)
  714. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  715. Do While schemas.MoveNext
  716. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  717. s2.SetLength(0)
  718. schema.Write(s2)
  719. If (s1.Length = s2.Length) Then
  720. s1.Position = 0
  721. s2.Position = 0
  722. Do While ((s1.Position <> s1.Length) _
  723. AndAlso (s1.ReadByte = s2.ReadByte))
  724. Loop
  725. If (s1.Position = s1.Length) Then
  726. Return type
  727. End If
  728. End If
  729. Loop
  730. Finally
  731. If (Not (s1) Is Nothing) Then
  732. s1.Close
  733. End If
  734. If (Not (s2) Is Nothing) Then
  735. s2.Close
  736. End If
  737. End Try
  738. End If
  739. xs.Add(dsSchema)
  740. Return type
  741. End Function
  742. End Class
  743. '''<summary>
  744. '''Represents the strongly named DataTable class.
  745. '''</summary>
  746. <Global.System.Serializable(), _
  747. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  748. Partial Public Class SongsDataTable
  749. Inherits Global.System.Data.DataTable
  750. Implements Global.System.Collections.IEnumerable
  751. Private columnSongID As Global.System.Data.DataColumn
  752. Private columnTitle As Global.System.Data.DataColumn
  753. Private columnLicenseID As Global.System.Data.DataColumn
  754. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  755. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  756. Public Sub New()
  757. MyBase.New
  758. Me.TableName = "Songs"
  759. Me.BeginInit
  760. Me.InitClass
  761. Me.EndInit
  762. End Sub
  763. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  764. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  765. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  766. MyBase.New
  767. Me.TableName = table.TableName
  768. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  769. Me.CaseSensitive = table.CaseSensitive
  770. End If
  771. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  772. Me.Locale = table.Locale
  773. End If
  774. If (table.Namespace <> table.DataSet.Namespace) Then
  775. Me.Namespace = table.Namespace
  776. End If
  777. Me.Prefix = table.Prefix
  778. Me.MinimumCapacity = table.MinimumCapacity
  779. End Sub
  780. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  781. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  782. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  783. MyBase.New(info, context)
  784. Me.InitVars
  785. End Sub
  786. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  787. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  788. Public ReadOnly Property SongIDColumn() As Global.System.Data.DataColumn
  789. Get
  790. Return Me.columnSongID
  791. End Get
  792. End Property
  793. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  794. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  795. Public ReadOnly Property TitleColumn() As Global.System.Data.DataColumn
  796. Get
  797. Return Me.columnTitle
  798. End Get
  799. End Property
  800. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  801. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  802. Public ReadOnly Property LicenseIDColumn() As Global.System.Data.DataColumn
  803. Get
  804. Return Me.columnLicenseID
  805. End Get
  806. End Property
  807. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  808. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  809. Global.System.ComponentModel.Browsable(false)> _

Large files files are truncated, but you can click here to view the full file