'------------------------------------------------------------------------------
' <autogenerated>
'     This code was generated by a tool.
'     Runtime Version: 1.1.4322.2032
'
'     Changes to this file may cause incorrect behavior and will be lost if 
'     the code is regenerated.
' </autogenerated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.Data
Imports System.Runtime.Serialization
Imports System.Xml


<Serializable(),  _
 System.ComponentModel.DesignerCategoryAttribute("code"),  _
 System.Diagnostics.DebuggerStepThrough(),  _
 System.ComponentModel.ToolboxItem(true)>  _
Public Class DataSet1
    Inherits DataSet
    
    Private tablePrimer_Sequences As Primer_SequencesDataTable
    
    Public Sub New()
        MyBase.New
        Me.InitClass
        Dim schemaChangedHandler As System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
        AddHandler Me.Tables.CollectionChanged, schemaChangedHandler
        AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
    End Sub
    
    Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)
        MyBase.New
        Dim strSchema As String = CType(info.GetValue("XmlSchema", GetType(System.String)),String)
        If (Not (strSchema) Is Nothing) Then
            Dim ds As DataSet = New DataSet
            ds.ReadXmlSchema(New XmlTextReader(New System.IO.StringReader(strSchema)))
            If (Not (ds.Tables("Primer_Sequences")) Is Nothing) Then
                Me.Tables.Add(New Primer_SequencesDataTable(ds.Tables("Primer_Sequences")))
            End If
            Me.DataSetName = ds.DataSetName
            Me.Prefix = ds.Prefix
            Me.Namespace = ds.Namespace
            Me.Locale = ds.Locale
            Me.CaseSensitive = ds.CaseSensitive
            Me.EnforceConstraints = ds.EnforceConstraints
            Me.Merge(ds, false, System.Data.MissingSchemaAction.Add)
            Me.InitVars
        Else
            Me.InitClass
        End If
        Me.GetSerializationData(info, context)
        Dim schemaChangedHandler As System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
        AddHandler Me.Tables.CollectionChanged, schemaChangedHandler
        AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
    End Sub
    
    <System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Primer_Sequences As Primer_SequencesDataTable
        Get
            Return Me.tablePrimer_Sequences
        End Get
    End Property
    
    Public Overrides Function Clone() As DataSet
        Dim cln As DataSet1 = CType(MyBase.Clone,DataSet1)
        cln.InitVars
        Return cln
    End Function
    
    Protected Overrides Function ShouldSerializeTables() As Boolean
        Return false
    End Function
    
    Protected Overrides Function ShouldSerializeRelations() As Boolean
        Return false
    End Function
    
    Protected Overrides Sub ReadXmlSerializable(ByVal reader As XmlReader)
        Me.Reset
        Dim ds As DataSet = New DataSet
        ds.ReadXml(reader)
        If (Not (ds.Tables("Primer_Sequences")) Is Nothing) Then
            Me.Tables.Add(New Primer_SequencesDataTable(ds.Tables("Primer_Sequences")))
        End If
        Me.DataSetName = ds.DataSetName
        Me.Prefix = ds.Prefix
        Me.Namespace = ds.Namespace
        Me.Locale = ds.Locale
        Me.CaseSensitive = ds.CaseSensitive
        Me.EnforceConstraints = ds.EnforceConstraints
        Me.Merge(ds, false, System.Data.MissingSchemaAction.Add)
        Me.InitVars
    End Sub
    
    Protected Overrides Function GetSchemaSerializable() As System.Xml.Schema.XmlSchema
        Dim stream As System.IO.MemoryStream = New System.IO.MemoryStream
        Me.WriteXmlSchema(New XmlTextWriter(stream, Nothing))
        stream.Position = 0
        Return System.Xml.Schema.XmlSchema.Read(New XmlTextReader(stream), Nothing)
    End Function
    
    Friend Sub InitVars()
        Me.tablePrimer_Sequences = CType(Me.Tables("Primer_Sequences"),Primer_SequencesDataTable)
        If (Not (Me.tablePrimer_Sequences) Is Nothing) Then
            Me.tablePrimer_Sequences.InitVars
        End If
    End Sub
    
    Private Sub InitClass()
        Me.DataSetName = "DataSet1"
        Me.Prefix = ""
        Me.Namespace = "http://www.tempuri.org/DataSet1.xsd"
        Me.Locale = New System.Globalization.CultureInfo("en-US")
        Me.CaseSensitive = false
        Me.EnforceConstraints = true
        Me.tablePrimer_Sequences = New Primer_SequencesDataTable
        Me.Tables.Add(Me.tablePrimer_Sequences)
    End Sub
    
    Private Function ShouldSerializePrimer_Sequences() As Boolean
        Return false
    End Function
    
    Private Sub SchemaChanged(ByVal sender As Object, ByVal e As System.ComponentModel.CollectionChangeEventArgs)
        If (e.Action = System.ComponentModel.CollectionChangeAction.Remove) Then
            Me.InitVars
        End If
    End Sub
    
    Public Delegate Sub Primer_SequencesRowChangeEventHandler(ByVal sender As Object, ByVal e As Primer_SequencesRowChangeEvent)
    
    <System.Diagnostics.DebuggerStepThrough()>  _
    Public Class Primer_SequencesDataTable
        Inherits DataTable
        Implements System.Collections.IEnumerable
        
        Private column_5__to_3__sequence As DataColumn
        
        Private columnPrimerID As DataColumn
        
        Friend Sub New()
            MyBase.New("Primer_Sequences")
            Me.InitClass
        End Sub
        
        Friend Sub New(ByVal table As DataTable)
            MyBase.New(table.TableName)
            If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
                Me.CaseSensitive = table.CaseSensitive
            End If
            If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
                Me.Locale = table.Locale
            End If
            If (table.Namespace <> table.DataSet.Namespace) Then
                Me.Namespace = table.Namespace
            End If
            Me.Prefix = table.Prefix
            Me.MinimumCapacity = table.MinimumCapacity
            Me.DisplayExpression = table.DisplayExpression
        End Sub
        
        <System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        Friend ReadOnly Property _5__to_3__sequenceColumn As DataColumn
            Get
                Return Me.column_5__to_3__sequence
            End Get
        End Property
        
        Friend ReadOnly Property PrimerIDColumn As DataColumn
            Get
                Return Me.columnPrimerID
            End Get
        End Property
        
        Public Default ReadOnly Property Item(ByVal index As Integer) As Primer_SequencesRow
            Get
                Return CType(Me.Rows(index),Primer_SequencesRow)
            End Get
        End Property
        
        Public Event Primer_SequencesRowChanged As Primer_SequencesRowChangeEventHandler
        
        Public Event Primer_SequencesRowChanging As Primer_SequencesRowChangeEventHandler
        
        Public Event Primer_SequencesRowDeleted As Primer_SequencesRowChangeEventHandler
        
        Public Event Primer_SequencesRowDeleting As Primer_SequencesRowChangeEventHandler
        
        Public Overloads Sub AddPrimer_SequencesRow(ByVal row As Primer_SequencesRow)
            Me.Rows.Add(row)
        End Sub
        
        Public Overloads Function AddPrimer_SequencesRow(ByVal _5__to_3__sequence As String, ByVal PrimerID As String) As Primer_SequencesRow
            Dim rowPrimer_SequencesRow As Primer_SequencesRow = CType(Me.NewRow,Primer_SequencesRow)
            rowPrimer_SequencesRow.ItemArray = New Object() {_5__to_3__sequence, PrimerID}
            Me.Rows.Add(rowPrimer_SequencesRow)
            Return rowPrimer_SequencesRow
        End Function
        
        Public Function FindByPrimerID(ByVal PrimerID As String) As Primer_SequencesRow
            Return CType(Me.Rows.Find(New Object() {PrimerID}),Primer_SequencesRow)
        End Function
        
        Public Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        Public Overrides Function Clone() As DataTable
            Dim cln As Primer_SequencesDataTable = CType(MyBase.Clone,Primer_SequencesDataTable)
            cln.InitVars
            Return cln
        End Function
        
        Protected Overrides Function CreateInstance() As DataTable
            Return New Primer_SequencesDataTable
        End Function
        
        Friend Sub InitVars()
            Me.column_5__to_3__sequence = Me.Columns("5' to 3' sequence")
            Me.columnPrimerID = Me.Columns("PrimerID")
        End Sub
        
        Private Sub InitClass()
            Me.column_5__to_3__sequence = New DataColumn("5' to 3' sequence", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.column_5__to_3__sequence)
            Me.columnPrimerID = New DataColumn("PrimerID", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnPrimerID)
            Me.Constraints.Add(New UniqueConstraint("Constraint1", New DataColumn() {Me.columnPrimerID}, true))
            Me.columnPrimerID.AllowDBNull = false
            Me.columnPrimerID.Unique = true
        End Sub
        
        Public Function NewPrimer_SequencesRow() As Primer_SequencesRow
            Return CType(Me.NewRow,Primer_SequencesRow)
        End Function
        
        Protected Overrides Function NewRowFromBuilder(ByVal builder As DataRowBuilder) As DataRow
            Return New Primer_SequencesRow(builder)
        End Function
        
        Protected Overrides Function GetRowType() As System.Type
            Return GetType(Primer_SequencesRow)
        End Function
        
        Protected Overrides Sub OnRowChanged(ByVal e As DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.Primer_SequencesRowChangedEvent) Is Nothing) Then
                RaiseEvent Primer_SequencesRowChanged(Me, New Primer_SequencesRowChangeEvent(CType(e.Row,Primer_SequencesRow), e.Action))
            End If
        End Sub
        
        Protected Overrides Sub OnRowChanging(ByVal e As DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.Primer_SequencesRowChangingEvent) Is Nothing) Then
                RaiseEvent Primer_SequencesRowChanging(Me, New Primer_SequencesRowChangeEvent(CType(e.Row,Primer_SequencesRow), e.Action))
            End If
        End Sub
        
        Protected Overrides Sub OnRowDeleted(ByVal e As DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.Primer_SequencesRowDeletedEvent) Is Nothing) Then
                RaiseEvent Primer_SequencesRowDeleted(Me, New Primer_SequencesRowChangeEvent(CType(e.Row,Primer_SequencesRow), e.Action))
            End If
        End Sub
        
        Protected Overrides Sub OnRowDeleting(ByVal e As DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.Primer_SequencesRowDeletingEvent) Is Nothing) Then
                RaiseEvent Primer_SequencesRowDeleting(Me, New Primer_SequencesRowChangeEvent(CType(e.Row,Primer_SequencesRow), e.Action))
            End If
        End Sub
        
        Public Sub RemovePrimer_SequencesRow(ByVal row As Primer_SequencesRow)
            Me.Rows.Remove(row)
        End Sub
    End Class
    
    <System.Diagnostics.DebuggerStepThrough()>  _
    Public Class Primer_SequencesRow
        Inherits DataRow
        
        Private tablePrimer_Sequences As Primer_SequencesDataTable
        
        Friend Sub New(ByVal rb As DataRowBuilder)
            MyBase.New(rb)
            Me.tablePrimer_Sequences = CType(Me.Table,Primer_SequencesDataTable)
        End Sub
        
        Public Property _5__to_3__sequence As String
            Get
                Try 
                    Return CType(Me(Me.tablePrimer_Sequences._5__to_3__sequenceColumn),String)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("Cannot get value because it is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tablePrimer_Sequences._5__to_3__sequenceColumn) = value
            End Set
        End Property
        
        Public Property PrimerID As String
            Get
                Return CType(Me(Me.tablePrimer_Sequences.PrimerIDColumn),String)
            End Get
            Set
                Me(Me.tablePrimer_Sequences.PrimerIDColumn) = value
            End Set
        End Property
        
        Public Function Is_5__to_3__sequenceNull() As Boolean
            Return Me.IsNull(Me.tablePrimer_Sequences._5__to_3__sequenceColumn)
        End Function
        
        Public Sub Set_5__to_3__sequenceNull()
            Me(Me.tablePrimer_Sequences._5__to_3__sequenceColumn) = System.Convert.DBNull
        End Sub
    End Class
    
    <System.Diagnostics.DebuggerStepThrough()>  _
    Public Class Primer_SequencesRowChangeEvent
        Inherits EventArgs
        
        Private eventRow As Primer_SequencesRow
        
        Private eventAction As DataRowAction
        
        Public Sub New(ByVal row As Primer_SequencesRow, ByVal action As DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        Public ReadOnly Property Row As Primer_SequencesRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        Public ReadOnly Property Action As DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
End Class
