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

Option Strict Off
Option Explicit On

Imports System


<System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
 Serializable(),  _
 System.ComponentModel.DesignerCategoryAttribute("code"),  _
 System.ComponentModel.ToolboxItem(true),  _
 System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema"),  _
 System.Xml.Serialization.XmlRootAttribute("SmartEstateDataSet"),  _
 System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")>  _
Partial Public Class SmartEstateDataSet
    Inherits System.Data.DataSet
    
    Private tableAgenti As AgentiDataTable
    
    Private tableAgenzie As AgenzieDataTable
    
    Private tableClienti As ClientiDataTable
    
    Private tableContratti As ContrattiDataTable
    
    Private tableImmobili As ImmobiliDataTable
    
    Private tableOfferte As OfferteDataTable
    
    Private tablePreventivi As PreventiviDataTable
    
    Private tableTipoImmobile As TipoImmobileDataTable
    
    Private tableTipoOffertaImmobile As TipoOffertaImmobileDataTable
    
    Private relationFK__Agenti__IdAgenzi__117F9D94 As System.Data.DataRelation
    
    Private relationFK__Clienti__IdAgenz__1273C1CD As System.Data.DataRelation
    
    Private relationFK__Contratti__Codic__1367E606 As System.Data.DataRelation
    
    Private relationFK__Immobili__Codice__15502E78 As System.Data.DataRelation
    
    Private relationFK__Immobili__IdAgen__164452B1 As System.Data.DataRelation
    
    Private relationFK__Offerte__CodiceT__173876EA As System.Data.DataRelation
    
    Private relationFK__Offerte__IdPreve__182C9B23 As System.Data.DataRelation
    
    Private relationFK__Preventiv__Codic__117F9D94 As System.Data.DataRelation
    
    Private relationFK__Preventiv__IdAge__1B0907CE As System.Data.DataRelation
    
    Private relationFK__Preventiv__IdCli__1920BF5C As System.Data.DataRelation
    
    Private relationFK__Preventivi As System.Data.DataRelation
    
    Private _schemaSerializationMode As System.Data.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Public Sub New()
        MyBase.New
        Me.BeginInit
        Me.InitClass
        Dim schemaChangedHandler As System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
        AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
        AddHandler MyBase.Relations.CollectionChanged, schemaChangedHandler
        Me.EndInit
    End Sub
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
        MyBase.New(info, context, false)
        If (Me.IsBinarySerialized(info, context) = true) Then
            Me.InitVars(false)
            Dim schemaChangedHandler1 As System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
            AddHandler Me.Tables.CollectionChanged, schemaChangedHandler1
            AddHandler Me.Relations.CollectionChanged, schemaChangedHandler1
            Return
        End If
        Dim strSchema As String = CType(info.GetValue("XmlSchema", GetType(String)),String)
        If (Me.DetermineSchemaSerializationMode(info, context) = System.Data.SchemaSerializationMode.IncludeSchema) Then
            Dim ds As System.Data.DataSet = New System.Data.DataSet
            ds.ReadXmlSchema(New System.Xml.XmlTextReader(New System.IO.StringReader(strSchema)))
            If (Not (ds.Tables("Agenti")) Is Nothing) Then
                MyBase.Tables.Add(New AgentiDataTable(ds.Tables("Agenti")))
            End If
            If (Not (ds.Tables("Agenzie")) Is Nothing) Then
                MyBase.Tables.Add(New AgenzieDataTable(ds.Tables("Agenzie")))
            End If
            If (Not (ds.Tables("Clienti")) Is Nothing) Then
                MyBase.Tables.Add(New ClientiDataTable(ds.Tables("Clienti")))
            End If
            If (Not (ds.Tables("Contratti")) Is Nothing) Then
                MyBase.Tables.Add(New ContrattiDataTable(ds.Tables("Contratti")))
            End If
            If (Not (ds.Tables("Immobili")) Is Nothing) Then
                MyBase.Tables.Add(New ImmobiliDataTable(ds.Tables("Immobili")))
            End If
            If (Not (ds.Tables("Offerte")) Is Nothing) Then
                MyBase.Tables.Add(New OfferteDataTable(ds.Tables("Offerte")))
            End If
            If (Not (ds.Tables("Preventivi")) Is Nothing) Then
                MyBase.Tables.Add(New PreventiviDataTable(ds.Tables("Preventivi")))
            End If
            If (Not (ds.Tables("TipoImmobile")) Is Nothing) Then
                MyBase.Tables.Add(New TipoImmobileDataTable(ds.Tables("TipoImmobile")))
            End If
            If (Not (ds.Tables("TipoOffertaImmobile")) Is Nothing) Then
                MyBase.Tables.Add(New TipoOffertaImmobileDataTable(ds.Tables("TipoOffertaImmobile")))
            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.ReadXmlSchema(New System.Xml.XmlTextReader(New System.IO.StringReader(strSchema)))
        End If
        Me.GetSerializationData(info, context)
        Dim schemaChangedHandler As System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
        AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
        AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
    End Sub
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Agenti() As AgentiDataTable
        Get
            Return Me.tableAgenti
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Agenzie() As AgenzieDataTable
        Get
            Return Me.tableAgenzie
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Clienti() As ClientiDataTable
        Get
            Return Me.tableClienti
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Contratti() As ContrattiDataTable
        Get
            Return Me.tableContratti
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Immobili() As ImmobiliDataTable
        Get
            Return Me.tableImmobili
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Offerte() As OfferteDataTable
        Get
            Return Me.tableOfferte
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Preventivi() As PreventiviDataTable
        Get
            Return Me.tablePreventivi
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property TipoImmobile() As TipoImmobileDataTable
        Get
            Return Me.tableTipoImmobile
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property TipoOffertaImmobile() As TipoOffertaImmobileDataTable
        Get
            Return Me.tableTipoOffertaImmobile
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.BrowsableAttribute(true),  _
     System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)>  _
    Public Overrides Property SchemaSerializationMode() As System.Data.SchemaSerializationMode
        Get
            Return Me._schemaSerializationMode
        End Get
        Set
            Me._schemaSerializationMode = value
        End Set
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)>  _
    Public Shadows ReadOnly Property Tables() As System.Data.DataTableCollection
        Get
            Return MyBase.Tables
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)>  _
    Public Shadows ReadOnly Property Relations() As System.Data.DataRelationCollection
        Get
            Return MyBase.Relations
        End Get
    End Property
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Protected Overrides Sub InitializeDerivedDataSet()
        Me.BeginInit
        Me.InitClass
        Me.EndInit
    End Sub
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Public Overrides Function Clone() As System.Data.DataSet
        Dim cln As SmartEstateDataSet = CType(MyBase.Clone,SmartEstateDataSet)
        cln.InitVars
        cln.SchemaSerializationMode = Me.SchemaSerializationMode
        Return cln
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Protected Overrides Function ShouldSerializeTables() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Protected Overrides Function ShouldSerializeRelations() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Protected Overrides Sub ReadXmlSerializable(ByVal reader As System.Xml.XmlReader)
        If (Me.DetermineSchemaSerializationMode(reader) = System.Data.SchemaSerializationMode.IncludeSchema) Then
            Me.Reset
            Dim ds As System.Data.DataSet = New System.Data.DataSet
            ds.ReadXml(reader)
            If (Not (ds.Tables("Agenti")) Is Nothing) Then
                MyBase.Tables.Add(New AgentiDataTable(ds.Tables("Agenti")))
            End If
            If (Not (ds.Tables("Agenzie")) Is Nothing) Then
                MyBase.Tables.Add(New AgenzieDataTable(ds.Tables("Agenzie")))
            End If
            If (Not (ds.Tables("Clienti")) Is Nothing) Then
                MyBase.Tables.Add(New ClientiDataTable(ds.Tables("Clienti")))
            End If
            If (Not (ds.Tables("Contratti")) Is Nothing) Then
                MyBase.Tables.Add(New ContrattiDataTable(ds.Tables("Contratti")))
            End If
            If (Not (ds.Tables("Immobili")) Is Nothing) Then
                MyBase.Tables.Add(New ImmobiliDataTable(ds.Tables("Immobili")))
            End If
            If (Not (ds.Tables("Offerte")) Is Nothing) Then
                MyBase.Tables.Add(New OfferteDataTable(ds.Tables("Offerte")))
            End If
            If (Not (ds.Tables("Preventivi")) Is Nothing) Then
                MyBase.Tables.Add(New PreventiviDataTable(ds.Tables("Preventivi")))
            End If
            If (Not (ds.Tables("TipoImmobile")) Is Nothing) Then
                MyBase.Tables.Add(New TipoImmobileDataTable(ds.Tables("TipoImmobile")))
            End If
            If (Not (ds.Tables("TipoOffertaImmobile")) Is Nothing) Then
                MyBase.Tables.Add(New TipoOffertaImmobileDataTable(ds.Tables("TipoOffertaImmobile")))
            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.ReadXml(reader)
            Me.InitVars
        End If
    End Sub
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Protected Overrides Function GetSchemaSerializable() As System.Xml.Schema.XmlSchema
        Dim stream As System.IO.MemoryStream = New System.IO.MemoryStream
        Me.WriteXmlSchema(New System.Xml.XmlTextWriter(stream, Nothing))
        stream.Position = 0
        Return System.Xml.Schema.XmlSchema.Read(New System.Xml.XmlTextReader(stream), Nothing)
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Friend Overloads Sub InitVars()
        Me.InitVars(true)
    End Sub
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Friend Overloads Sub InitVars(ByVal initTable As Boolean)
        Me.tableAgenti = CType(MyBase.Tables("Agenti"),AgentiDataTable)
        If (initTable = true) Then
            If (Not (Me.tableAgenti) Is Nothing) Then
                Me.tableAgenti.InitVars
            End If
        End If
        Me.tableAgenzie = CType(MyBase.Tables("Agenzie"),AgenzieDataTable)
        If (initTable = true) Then
            If (Not (Me.tableAgenzie) Is Nothing) Then
                Me.tableAgenzie.InitVars
            End If
        End If
        Me.tableClienti = CType(MyBase.Tables("Clienti"),ClientiDataTable)
        If (initTable = true) Then
            If (Not (Me.tableClienti) Is Nothing) Then
                Me.tableClienti.InitVars
            End If
        End If
        Me.tableContratti = CType(MyBase.Tables("Contratti"),ContrattiDataTable)
        If (initTable = true) Then
            If (Not (Me.tableContratti) Is Nothing) Then
                Me.tableContratti.InitVars
            End If
        End If
        Me.tableImmobili = CType(MyBase.Tables("Immobili"),ImmobiliDataTable)
        If (initTable = true) Then
            If (Not (Me.tableImmobili) Is Nothing) Then
                Me.tableImmobili.InitVars
            End If
        End If
        Me.tableOfferte = CType(MyBase.Tables("Offerte"),OfferteDataTable)
        If (initTable = true) Then
            If (Not (Me.tableOfferte) Is Nothing) Then
                Me.tableOfferte.InitVars
            End If
        End If
        Me.tablePreventivi = CType(MyBase.Tables("Preventivi"),PreventiviDataTable)
        If (initTable = true) Then
            If (Not (Me.tablePreventivi) Is Nothing) Then
                Me.tablePreventivi.InitVars
            End If
        End If
        Me.tableTipoImmobile = CType(MyBase.Tables("TipoImmobile"),TipoImmobileDataTable)
        If (initTable = true) Then
            If (Not (Me.tableTipoImmobile) Is Nothing) Then
                Me.tableTipoImmobile.InitVars
            End If
        End If
        Me.tableTipoOffertaImmobile = CType(MyBase.Tables("TipoOffertaImmobile"),TipoOffertaImmobileDataTable)
        If (initTable = true) Then
            If (Not (Me.tableTipoOffertaImmobile) Is Nothing) Then
                Me.tableTipoOffertaImmobile.InitVars
            End If
        End If
        Me.relationFK__Agenti__IdAgenzi__117F9D94 = Me.Relations("FK__Agenti__IdAgenzi__117F9D94")
        Me.relationFK__Clienti__IdAgenz__1273C1CD = Me.Relations("FK__Clienti__IdAgenz__1273C1CD")
        Me.relationFK__Contratti__Codic__1367E606 = Me.Relations("FK__Contratti__Codic__1367E606")
        Me.relationFK__Immobili__Codice__15502E78 = Me.Relations("FK__Immobili__Codice__15502E78")
        Me.relationFK__Immobili__IdAgen__164452B1 = Me.Relations("FK__Immobili__IdAgen__164452B1")
        Me.relationFK__Offerte__CodiceT__173876EA = Me.Relations("FK__Offerte__CodiceT__173876EA")
        Me.relationFK__Offerte__IdPreve__182C9B23 = Me.Relations("FK__Offerte__IdPreve__182C9B23")
        Me.relationFK__Preventiv__Codic__117F9D94 = Me.Relations("FK__Preventiv__Codic__117F9D94")
        Me.relationFK__Preventiv__IdAge__1B0907CE = Me.Relations("FK__Preventiv__IdAge__1B0907CE")
        Me.relationFK__Preventiv__IdCli__1920BF5C = Me.Relations("FK__Preventiv__IdCli__1920BF5C")
        Me.relationFK__Preventivi = Me.Relations("FK__Preventivi")
    End Sub
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Private Sub InitClass()
        Me.DataSetName = "SmartEstateDataSet"
        Me.Prefix = ""
        Me.Namespace = "http://tempuri.org/SmartEstateDataSet.xsd"
        Me.EnforceConstraints = true
        Me.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema
        Me.tableAgenti = New AgentiDataTable
        MyBase.Tables.Add(Me.tableAgenti)
        Me.tableAgenzie = New AgenzieDataTable
        MyBase.Tables.Add(Me.tableAgenzie)
        Me.tableClienti = New ClientiDataTable
        MyBase.Tables.Add(Me.tableClienti)
        Me.tableContratti = New ContrattiDataTable
        MyBase.Tables.Add(Me.tableContratti)
        Me.tableImmobili = New ImmobiliDataTable
        MyBase.Tables.Add(Me.tableImmobili)
        Me.tableOfferte = New OfferteDataTable
        MyBase.Tables.Add(Me.tableOfferte)
        Me.tablePreventivi = New PreventiviDataTable
        MyBase.Tables.Add(Me.tablePreventivi)
        Me.tableTipoImmobile = New TipoImmobileDataTable
        MyBase.Tables.Add(Me.tableTipoImmobile)
        Me.tableTipoOffertaImmobile = New TipoOffertaImmobileDataTable
        MyBase.Tables.Add(Me.tableTipoOffertaImmobile)
        Me.relationFK__Agenti__IdAgenzi__117F9D94 = New System.Data.DataRelation("FK__Agenti__IdAgenzi__117F9D94", New System.Data.DataColumn() {Me.tableAgenzie.IdAgenziaColumn}, New System.Data.DataColumn() {Me.tableAgenti.IdAgenziaColumn}, false)
        Me.Relations.Add(Me.relationFK__Agenti__IdAgenzi__117F9D94)
        Me.relationFK__Clienti__IdAgenz__1273C1CD = New System.Data.DataRelation("FK__Clienti__IdAgenz__1273C1CD", New System.Data.DataColumn() {Me.tableAgenzie.IdAgenziaColumn}, New System.Data.DataColumn() {Me.tableClienti.IdAgenziaColumn}, false)
        Me.Relations.Add(Me.relationFK__Clienti__IdAgenz__1273C1CD)
        Me.relationFK__Contratti__Codic__1367E606 = New System.Data.DataRelation("FK__Contratti__Codic__1367E606", New System.Data.DataColumn() {Me.tableTipoOffertaImmobile.CodiceTipoOffertaImmobileColumn}, New System.Data.DataColumn() {Me.tableContratti.CodiceTipoOffertaImmobileColumn}, false)
        Me.Relations.Add(Me.relationFK__Contratti__Codic__1367E606)
        Me.relationFK__Immobili__Codice__15502E78 = New System.Data.DataRelation("FK__Immobili__Codice__15502E78", New System.Data.DataColumn() {Me.tableTipoImmobile.CodiceTipoImmobileColumn}, New System.Data.DataColumn() {Me.tableImmobili.CodiceTipoImmobileColumn}, false)
        Me.Relations.Add(Me.relationFK__Immobili__Codice__15502E78)
        Me.relationFK__Immobili__IdAgen__164452B1 = New System.Data.DataRelation("FK__Immobili__IdAgen__164452B1", New System.Data.DataColumn() {Me.tableAgenzie.IdAgenziaColumn}, New System.Data.DataColumn() {Me.tableImmobili.IdAgenziaColumn}, false)
        Me.Relations.Add(Me.relationFK__Immobili__IdAgen__164452B1)
        Me.relationFK__Offerte__CodiceT__173876EA = New System.Data.DataRelation("FK__Offerte__CodiceT__173876EA", New System.Data.DataColumn() {Me.tableTipoOffertaImmobile.CodiceTipoOffertaImmobileColumn}, New System.Data.DataColumn() {Me.tableOfferte.CodiceTipoOffertaImmobileColumn}, false)
        Me.Relations.Add(Me.relationFK__Offerte__CodiceT__173876EA)
        Me.relationFK__Offerte__IdPreve__182C9B23 = New System.Data.DataRelation("FK__Offerte__IdPreve__182C9B23", New System.Data.DataColumn() {Me.tablePreventivi.IdPreventivoColumn}, New System.Data.DataColumn() {Me.tableOfferte.IdPreventivoColumn}, false)
        Me.Relations.Add(Me.relationFK__Offerte__IdPreve__182C9B23)
        Me.relationFK__Preventiv__Codic__117F9D94 = New System.Data.DataRelation("FK__Preventiv__Codic__117F9D94", New System.Data.DataColumn() {Me.tableTipoOffertaImmobile.CodiceTipoOffertaImmobileColumn}, New System.Data.DataColumn() {Me.tablePreventivi.CodiceTipoOffertaImmobileColumn}, false)
        Me.Relations.Add(Me.relationFK__Preventiv__Codic__117F9D94)
        Me.relationFK__Preventiv__IdAge__1B0907CE = New System.Data.DataRelation("FK__Preventiv__IdAge__1B0907CE", New System.Data.DataColumn() {Me.tableAgenti.IdAgenteColumn}, New System.Data.DataColumn() {Me.tablePreventivi.IdAgenteColumn}, false)
        Me.Relations.Add(Me.relationFK__Preventiv__IdAge__1B0907CE)
        Me.relationFK__Preventiv__IdCli__1920BF5C = New System.Data.DataRelation("FK__Preventiv__IdCli__1920BF5C", New System.Data.DataColumn() {Me.tableClienti.IdClienteColumn}, New System.Data.DataColumn() {Me.tablePreventivi.IdClienteColumn}, false)
        Me.Relations.Add(Me.relationFK__Preventiv__IdCli__1920BF5C)
        Me.relationFK__Preventivi = New System.Data.DataRelation("FK__Preventivi", New System.Data.DataColumn() {Me.tableImmobili.IdImmobileColumn}, New System.Data.DataColumn() {Me.tablePreventivi.IdImmobileColumn}, false)
        Me.Relations.Add(Me.relationFK__Preventivi)
    End Sub
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Private Function ShouldSerializeAgenti() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Private Function ShouldSerializeAgenzie() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Private Function ShouldSerializeClienti() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Private Function ShouldSerializeContratti() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Private Function ShouldSerializeImmobili() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Private Function ShouldSerializeOfferte() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Private Function ShouldSerializePreventivi() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Private Function ShouldSerializeTipoImmobile() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Private Function ShouldSerializeTipoOffertaImmobile() As Boolean
        Return false
    End Function
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    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
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Public Shared Function GetTypedDataSetSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
        Dim ds As SmartEstateDataSet = New SmartEstateDataSet
        Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
        Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
        xs.Add(ds.GetSchemaSerializable)
        Dim any As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
        any.Namespace = ds.Namespace
        sequence.Items.Add(any)
        type.Particle = sequence
        Return type
    End Function
    
    Public Delegate Sub AgentiRowChangeEventHandler(ByVal sender As Object, ByVal e As AgentiRowChangeEvent)
    
    Public Delegate Sub AgenzieRowChangeEventHandler(ByVal sender As Object, ByVal e As AgenzieRowChangeEvent)
    
    Public Delegate Sub ClientiRowChangeEventHandler(ByVal sender As Object, ByVal e As ClientiRowChangeEvent)
    
    Public Delegate Sub ContrattiRowChangeEventHandler(ByVal sender As Object, ByVal e As ContrattiRowChangeEvent)
    
    Public Delegate Sub ImmobiliRowChangeEventHandler(ByVal sender As Object, ByVal e As ImmobiliRowChangeEvent)
    
    Public Delegate Sub OfferteRowChangeEventHandler(ByVal sender As Object, ByVal e As OfferteRowChangeEvent)
    
    Public Delegate Sub PreventiviRowChangeEventHandler(ByVal sender As Object, ByVal e As PreventiviRowChangeEvent)
    
    Public Delegate Sub TipoImmobileRowChangeEventHandler(ByVal sender As Object, ByVal e As TipoImmobileRowChangeEvent)
    
    Public Delegate Sub TipoOffertaImmobileRowChangeEventHandler(ByVal sender As Object, ByVal e As TipoOffertaImmobileRowChangeEvent)
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.Serializable(),  _
     System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class AgentiDataTable
        Inherits System.Data.DataTable
        Implements System.Collections.IEnumerable
        
        Private columnIdAgente As System.Data.DataColumn
        
        Private columnIndirizzo As System.Data.DataColumn
        
        Private columnCAP As System.Data.DataColumn
        
        Private columnCitta As System.Data.DataColumn
        
        Private columnIdAgenzia As System.Data.DataColumn
        
        Private columnTelefonoNumero As System.Data.DataColumn
        
        Private columnNome As System.Data.DataColumn
        
        Private columnTelefonoPrefisso As System.Data.DataColumn
        
        Private columnCognome As System.Data.DataColumn
        
        Private columnEmail As System.Data.DataColumn
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Agenti"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal table As System.Data.DataTable)
            MyBase.New
            Me.TableName = 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
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdAgenteColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdAgente
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IndirizzoColumn() As System.Data.DataColumn
            Get
                Return Me.columnIndirizzo
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CAPColumn() As System.Data.DataColumn
            Get
                Return Me.columnCAP
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CittaColumn() As System.Data.DataColumn
            Get
                Return Me.columnCitta
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdAgenziaColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdAgenzia
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property TelefonoNumeroColumn() As System.Data.DataColumn
            Get
                Return Me.columnTelefonoNumero
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property NomeColumn() As System.Data.DataColumn
            Get
                Return Me.columnNome
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property TelefonoPrefissoColumn() As System.Data.DataColumn
            Get
                Return Me.columnTelefonoPrefisso
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CognomeColumn() As System.Data.DataColumn
            Get
                Return Me.columnCognome
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property EmailColumn() As System.Data.DataColumn
            Get
                Return Me.columnEmail
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As AgentiRow
            Get
                Return CType(Me.Rows(index),AgentiRow)
            End Get
        End Property
        
        Public Event AgentiRowChanging As AgentiRowChangeEventHandler
        
        Public Event AgentiRowChanged As AgentiRowChangeEventHandler
        
        Public Event AgentiRowDeleting As AgentiRowChangeEventHandler
        
        Public Event AgentiRowDeleted As AgentiRowChangeEventHandler
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Sub AddAgentiRow(ByVal row As AgentiRow)
            Me.Rows.Add(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Function AddAgentiRow(ByVal Indirizzo As String, ByVal CAP As String, ByVal Citta As String, ByVal parentAgenzieRowByFK__Agenti__IdAgenzi__117F9D94 As AgenzieRow, ByVal TelefonoNumero As String, ByVal Nome As String, ByVal TelefonoPrefisso As String, ByVal Cognome As String, ByVal Email As String) As AgentiRow
            Dim rowAgentiRow As AgentiRow = CType(Me.NewRow,AgentiRow)
            rowAgentiRow.ItemArray = New Object() {Nothing, Indirizzo, CAP, Citta, parentAgenzieRowByFK__Agenti__IdAgenzi__117F9D94(0), TelefonoNumero, Nome, TelefonoPrefisso, Cognome, Email}
            Me.Rows.Add(rowAgentiRow)
            Return rowAgentiRow
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function FindByIdAgente(ByVal IdAgente As Integer) As AgentiRow
            Return CType(Me.Rows.Find(New Object() {IdAgente}),AgentiRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overridable Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overrides Function Clone() As System.Data.DataTable
            Dim cln As AgentiDataTable = CType(MyBase.Clone,AgentiDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function CreateInstance() As System.Data.DataTable
            Return New AgentiDataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub InitVars()
            Me.columnIdAgente = MyBase.Columns("IdAgente")
            Me.columnIndirizzo = MyBase.Columns("Indirizzo")
            Me.columnCAP = MyBase.Columns("CAP")
            Me.columnCitta = MyBase.Columns("Citta")
            Me.columnIdAgenzia = MyBase.Columns("IdAgenzia")
            Me.columnTelefonoNumero = MyBase.Columns("TelefonoNumero")
            Me.columnNome = MyBase.Columns("Nome")
            Me.columnTelefonoPrefisso = MyBase.Columns("TelefonoPrefisso")
            Me.columnCognome = MyBase.Columns("Cognome")
            Me.columnEmail = MyBase.Columns("Email")
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitClass()
            Me.columnIdAgente = New System.Data.DataColumn("IdAgente", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdAgente)
            Me.columnIndirizzo = New System.Data.DataColumn("Indirizzo", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIndirizzo)
            Me.columnCAP = New System.Data.DataColumn("CAP", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCAP)
            Me.columnCitta = New System.Data.DataColumn("Citta", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCitta)
            Me.columnIdAgenzia = New System.Data.DataColumn("IdAgenzia", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdAgenzia)
            Me.columnTelefonoNumero = New System.Data.DataColumn("TelefonoNumero", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnTelefonoNumero)
            Me.columnNome = New System.Data.DataColumn("Nome", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnNome)
            Me.columnTelefonoPrefisso = New System.Data.DataColumn("TelefonoPrefisso", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnTelefonoPrefisso)
            Me.columnCognome = New System.Data.DataColumn("Cognome", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCognome)
            Me.columnEmail = New System.Data.DataColumn("Email", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnEmail)
            Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnIdAgente}, true))
            Me.columnIdAgente.AutoIncrement = true
            Me.columnIdAgente.AllowDBNull = false
            Me.columnIdAgente.ReadOnly = true
            Me.columnIdAgente.Unique = true
            Me.columnIndirizzo.MaxLength = 200
            Me.columnCAP.AllowDBNull = false
            Me.columnCAP.MaxLength = 5
            Me.columnCitta.MaxLength = 200
            Me.columnTelefonoNumero.MaxLength = 200
            Me.columnNome.MaxLength = 200
            Me.columnTelefonoPrefisso.MaxLength = 200
            Me.columnCognome.MaxLength = 200
            Me.columnEmail.MaxLength = 200
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function NewAgentiRow() As AgentiRow
            Return CType(Me.NewRow,AgentiRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
            Return New AgentiRow(builder)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function GetRowType() As System.Type
            Return GetType(AgentiRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.AgentiRowChangedEvent) Is Nothing) Then
                RaiseEvent AgentiRowChanged(Me, New AgentiRowChangeEvent(CType(e.Row,AgentiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanging(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.AgentiRowChangingEvent) Is Nothing) Then
                RaiseEvent AgentiRowChanging(Me, New AgentiRowChangeEvent(CType(e.Row,AgentiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.AgentiRowDeletedEvent) Is Nothing) Then
                RaiseEvent AgentiRowDeleted(Me, New AgentiRowChangeEvent(CType(e.Row,AgentiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.AgentiRowDeletingEvent) Is Nothing) Then
                RaiseEvent AgentiRowDeleting(Me, New AgentiRowChangeEvent(CType(e.Row,AgentiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub RemoveAgentiRow(ByVal row As AgentiRow)
            Me.Rows.Remove(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
            Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
            Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
            Dim ds As SmartEstateDataSet = New SmartEstateDataSet
            xs.Add(ds.GetSchemaSerializable)
            Dim any1 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "AgentiDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Return type
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.Serializable(),  _
     System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class AgenzieDataTable
        Inherits System.Data.DataTable
        Implements System.Collections.IEnumerable
        
        Private columnIdAgenzia As System.Data.DataColumn
        
        Private columnRagioneSociale As System.Data.DataColumn
        
        Private columnIndirizzo As System.Data.DataColumn
        
        Private columnCAP As System.Data.DataColumn
        
        Private columnCitta As System.Data.DataColumn
        
        Private columnPartitaIVA As System.Data.DataColumn
        
        Private columnTelefonoNumero As System.Data.DataColumn
        
        Private columnTelefonoPrefisso As System.Data.DataColumn
        
        Private columnFaxPrefisso As System.Data.DataColumn
        
        Private columnFaxNumero As System.Data.DataColumn
        
        Private columnIndirizzoWeb As System.Data.DataColumn
        
        Private columnEmail As System.Data.DataColumn
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Agenzie"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal table As System.Data.DataTable)
            MyBase.New
            Me.TableName = 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
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdAgenziaColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdAgenzia
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property RagioneSocialeColumn() As System.Data.DataColumn
            Get
                Return Me.columnRagioneSociale
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IndirizzoColumn() As System.Data.DataColumn
            Get
                Return Me.columnIndirizzo
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CAPColumn() As System.Data.DataColumn
            Get
                Return Me.columnCAP
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CittaColumn() As System.Data.DataColumn
            Get
                Return Me.columnCitta
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property PartitaIVAColumn() As System.Data.DataColumn
            Get
                Return Me.columnPartitaIVA
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property TelefonoNumeroColumn() As System.Data.DataColumn
            Get
                Return Me.columnTelefonoNumero
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property TelefonoPrefissoColumn() As System.Data.DataColumn
            Get
                Return Me.columnTelefonoPrefisso
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property FaxPrefissoColumn() As System.Data.DataColumn
            Get
                Return Me.columnFaxPrefisso
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property FaxNumeroColumn() As System.Data.DataColumn
            Get
                Return Me.columnFaxNumero
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IndirizzoWebColumn() As System.Data.DataColumn
            Get
                Return Me.columnIndirizzoWeb
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property EmailColumn() As System.Data.DataColumn
            Get
                Return Me.columnEmail
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As AgenzieRow
            Get
                Return CType(Me.Rows(index),AgenzieRow)
            End Get
        End Property
        
        Public Event AgenzieRowChanging As AgenzieRowChangeEventHandler
        
        Public Event AgenzieRowChanged As AgenzieRowChangeEventHandler
        
        Public Event AgenzieRowDeleting As AgenzieRowChangeEventHandler
        
        Public Event AgenzieRowDeleted As AgenzieRowChangeEventHandler
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Sub AddAgenzieRow(ByVal row As AgenzieRow)
            Me.Rows.Add(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Function AddAgenzieRow(ByVal RagioneSociale As String, ByVal Indirizzo As String, ByVal CAP As String, ByVal Citta As String, ByVal PartitaIVA As String, ByVal TelefonoNumero As String, ByVal TelefonoPrefisso As String, ByVal FaxPrefisso As String, ByVal FaxNumero As String, ByVal IndirizzoWeb As String, ByVal Email As String) As AgenzieRow
            Dim rowAgenzieRow As AgenzieRow = CType(Me.NewRow,AgenzieRow)
            rowAgenzieRow.ItemArray = New Object() {Nothing, RagioneSociale, Indirizzo, CAP, Citta, PartitaIVA, TelefonoNumero, TelefonoPrefisso, FaxPrefisso, FaxNumero, IndirizzoWeb, Email}
            Me.Rows.Add(rowAgenzieRow)
            Return rowAgenzieRow
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function FindByIdAgenzia(ByVal IdAgenzia As Integer) As AgenzieRow
            Return CType(Me.Rows.Find(New Object() {IdAgenzia}),AgenzieRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overridable Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overrides Function Clone() As System.Data.DataTable
            Dim cln As AgenzieDataTable = CType(MyBase.Clone,AgenzieDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function CreateInstance() As System.Data.DataTable
            Return New AgenzieDataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub InitVars()
            Me.columnIdAgenzia = MyBase.Columns("IdAgenzia")
            Me.columnRagioneSociale = MyBase.Columns("RagioneSociale")
            Me.columnIndirizzo = MyBase.Columns("Indirizzo")
            Me.columnCAP = MyBase.Columns("CAP")
            Me.columnCitta = MyBase.Columns("Citta")
            Me.columnPartitaIVA = MyBase.Columns("PartitaIVA")
            Me.columnTelefonoNumero = MyBase.Columns("TelefonoNumero")
            Me.columnTelefonoPrefisso = MyBase.Columns("TelefonoPrefisso")
            Me.columnFaxPrefisso = MyBase.Columns("FaxPrefisso")
            Me.columnFaxNumero = MyBase.Columns("FaxNumero")
            Me.columnIndirizzoWeb = MyBase.Columns("IndirizzoWeb")
            Me.columnEmail = MyBase.Columns("Email")
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitClass()
            Me.columnIdAgenzia = New System.Data.DataColumn("IdAgenzia", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdAgenzia)
            Me.columnRagioneSociale = New System.Data.DataColumn("RagioneSociale", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnRagioneSociale)
            Me.columnIndirizzo = New System.Data.DataColumn("Indirizzo", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIndirizzo)
            Me.columnCAP = New System.Data.DataColumn("CAP", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCAP)
            Me.columnCitta = New System.Data.DataColumn("Citta", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCitta)
            Me.columnPartitaIVA = New System.Data.DataColumn("PartitaIVA", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnPartitaIVA)
            Me.columnTelefonoNumero = New System.Data.DataColumn("TelefonoNumero", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnTelefonoNumero)
            Me.columnTelefonoPrefisso = New System.Data.DataColumn("TelefonoPrefisso", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnTelefonoPrefisso)
            Me.columnFaxPrefisso = New System.Data.DataColumn("FaxPrefisso", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFaxPrefisso)
            Me.columnFaxNumero = New System.Data.DataColumn("FaxNumero", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFaxNumero)
            Me.columnIndirizzoWeb = New System.Data.DataColumn("IndirizzoWeb", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIndirizzoWeb)
            Me.columnEmail = New System.Data.DataColumn("Email", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnEmail)
            Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnIdAgenzia}, true))
            Me.columnIdAgenzia.AutoIncrement = true
            Me.columnIdAgenzia.AllowDBNull = false
            Me.columnIdAgenzia.ReadOnly = true
            Me.columnIdAgenzia.Unique = true
            Me.columnRagioneSociale.MaxLength = 200
            Me.columnIndirizzo.MaxLength = 200
            Me.columnCAP.MaxLength = 5
            Me.columnCitta.MaxLength = 200
            Me.columnPartitaIVA.MaxLength = 200
            Me.columnTelefonoNumero.MaxLength = 200
            Me.columnTelefonoPrefisso.MaxLength = 200
            Me.columnFaxPrefisso.MaxLength = 200
            Me.columnFaxNumero.MaxLength = 200
            Me.columnIndirizzoWeb.MaxLength = 200
            Me.columnEmail.MaxLength = 200
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function NewAgenzieRow() As AgenzieRow
            Return CType(Me.NewRow,AgenzieRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
            Return New AgenzieRow(builder)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function GetRowType() As System.Type
            Return GetType(AgenzieRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.AgenzieRowChangedEvent) Is Nothing) Then
                RaiseEvent AgenzieRowChanged(Me, New AgenzieRowChangeEvent(CType(e.Row,AgenzieRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanging(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.AgenzieRowChangingEvent) Is Nothing) Then
                RaiseEvent AgenzieRowChanging(Me, New AgenzieRowChangeEvent(CType(e.Row,AgenzieRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.AgenzieRowDeletedEvent) Is Nothing) Then
                RaiseEvent AgenzieRowDeleted(Me, New AgenzieRowChangeEvent(CType(e.Row,AgenzieRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.AgenzieRowDeletingEvent) Is Nothing) Then
                RaiseEvent AgenzieRowDeleting(Me, New AgenzieRowChangeEvent(CType(e.Row,AgenzieRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub RemoveAgenzieRow(ByVal row As AgenzieRow)
            Me.Rows.Remove(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
            Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
            Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
            Dim ds As SmartEstateDataSet = New SmartEstateDataSet
            xs.Add(ds.GetSchemaSerializable)
            Dim any1 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "AgenzieDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Return type
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.Serializable(),  _
     System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class ClientiDataTable
        Inherits System.Data.DataTable
        Implements System.Collections.IEnumerable
        
        Private columnIdCliente As System.Data.DataColumn
        
        Private columnIdAgenzia As System.Data.DataColumn
        
        Private columnNome As System.Data.DataColumn
        
        Private columnCognome As System.Data.DataColumn
        
        Private columnIndirizzo As System.Data.DataColumn
        
        Private columnCAP As System.Data.DataColumn
        
        Private columnCitta As System.Data.DataColumn
        
        Private columnTelefonoPrefisso As System.Data.DataColumn
        
        Private columnTelefonoNumero As System.Data.DataColumn
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Clienti"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal table As System.Data.DataTable)
            MyBase.New
            Me.TableName = 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
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdClienteColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdCliente
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdAgenziaColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdAgenzia
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property NomeColumn() As System.Data.DataColumn
            Get
                Return Me.columnNome
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CognomeColumn() As System.Data.DataColumn
            Get
                Return Me.columnCognome
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IndirizzoColumn() As System.Data.DataColumn
            Get
                Return Me.columnIndirizzo
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CAPColumn() As System.Data.DataColumn
            Get
                Return Me.columnCAP
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CittaColumn() As System.Data.DataColumn
            Get
                Return Me.columnCitta
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property TelefonoPrefissoColumn() As System.Data.DataColumn
            Get
                Return Me.columnTelefonoPrefisso
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property TelefonoNumeroColumn() As System.Data.DataColumn
            Get
                Return Me.columnTelefonoNumero
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As ClientiRow
            Get
                Return CType(Me.Rows(index),ClientiRow)
            End Get
        End Property
        
        Public Event ClientiRowChanging As ClientiRowChangeEventHandler
        
        Public Event ClientiRowChanged As ClientiRowChangeEventHandler
        
        Public Event ClientiRowDeleting As ClientiRowChangeEventHandler
        
        Public Event ClientiRowDeleted As ClientiRowChangeEventHandler
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Sub AddClientiRow(ByVal row As ClientiRow)
            Me.Rows.Add(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Function AddClientiRow(ByVal parentAgenzieRowByFK__Clienti__IdAgenz__1273C1CD As AgenzieRow, ByVal Nome As String, ByVal Cognome As String, ByVal Indirizzo As String, ByVal CAP As String, ByVal Citta As String, ByVal TelefonoPrefisso As String, ByVal TelefonoNumero As String) As ClientiRow
            Dim rowClientiRow As ClientiRow = CType(Me.NewRow,ClientiRow)
            rowClientiRow.ItemArray = New Object() {Nothing, parentAgenzieRowByFK__Clienti__IdAgenz__1273C1CD(0), Nome, Cognome, Indirizzo, CAP, Citta, TelefonoPrefisso, TelefonoNumero}
            Me.Rows.Add(rowClientiRow)
            Return rowClientiRow
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function FindByIdCliente(ByVal IdCliente As Integer) As ClientiRow
            Return CType(Me.Rows.Find(New Object() {IdCliente}),ClientiRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overridable Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overrides Function Clone() As System.Data.DataTable
            Dim cln As ClientiDataTable = CType(MyBase.Clone,ClientiDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function CreateInstance() As System.Data.DataTable
            Return New ClientiDataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub InitVars()
            Me.columnIdCliente = MyBase.Columns("IdCliente")
            Me.columnIdAgenzia = MyBase.Columns("IdAgenzia")
            Me.columnNome = MyBase.Columns("Nome")
            Me.columnCognome = MyBase.Columns("Cognome")
            Me.columnIndirizzo = MyBase.Columns("Indirizzo")
            Me.columnCAP = MyBase.Columns("CAP")
            Me.columnCitta = MyBase.Columns("Citta")
            Me.columnTelefonoPrefisso = MyBase.Columns("TelefonoPrefisso")
            Me.columnTelefonoNumero = MyBase.Columns("TelefonoNumero")
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitClass()
            Me.columnIdCliente = New System.Data.DataColumn("IdCliente", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdCliente)
            Me.columnIdAgenzia = New System.Data.DataColumn("IdAgenzia", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdAgenzia)
            Me.columnNome = New System.Data.DataColumn("Nome", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnNome)
            Me.columnCognome = New System.Data.DataColumn("Cognome", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCognome)
            Me.columnIndirizzo = New System.Data.DataColumn("Indirizzo", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIndirizzo)
            Me.columnCAP = New System.Data.DataColumn("CAP", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCAP)
            Me.columnCitta = New System.Data.DataColumn("Citta", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCitta)
            Me.columnTelefonoPrefisso = New System.Data.DataColumn("TelefonoPrefisso", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnTelefonoPrefisso)
            Me.columnTelefonoNumero = New System.Data.DataColumn("TelefonoNumero", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnTelefonoNumero)
            Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnIdCliente}, true))
            Me.columnIdCliente.AutoIncrement = true
            Me.columnIdCliente.AllowDBNull = false
            Me.columnIdCliente.ReadOnly = true
            Me.columnIdCliente.Unique = true
            Me.columnIdAgenzia.AllowDBNull = false
            Me.columnNome.MaxLength = 200
            Me.columnCognome.MaxLength = 200
            Me.columnIndirizzo.MaxLength = 200
            Me.columnCAP.MaxLength = 200
            Me.columnCitta.MaxLength = 200
            Me.columnTelefonoPrefisso.MaxLength = 200
            Me.columnTelefonoNumero.MaxLength = 200
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function NewClientiRow() As ClientiRow
            Return CType(Me.NewRow,ClientiRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
            Return New ClientiRow(builder)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function GetRowType() As System.Type
            Return GetType(ClientiRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.ClientiRowChangedEvent) Is Nothing) Then
                RaiseEvent ClientiRowChanged(Me, New ClientiRowChangeEvent(CType(e.Row,ClientiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanging(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.ClientiRowChangingEvent) Is Nothing) Then
                RaiseEvent ClientiRowChanging(Me, New ClientiRowChangeEvent(CType(e.Row,ClientiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.ClientiRowDeletedEvent) Is Nothing) Then
                RaiseEvent ClientiRowDeleted(Me, New ClientiRowChangeEvent(CType(e.Row,ClientiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.ClientiRowDeletingEvent) Is Nothing) Then
                RaiseEvent ClientiRowDeleting(Me, New ClientiRowChangeEvent(CType(e.Row,ClientiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub RemoveClientiRow(ByVal row As ClientiRow)
            Me.Rows.Remove(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
            Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
            Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
            Dim ds As SmartEstateDataSet = New SmartEstateDataSet
            xs.Add(ds.GetSchemaSerializable)
            Dim any1 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "ClientiDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Return type
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.Serializable(),  _
     System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class ContrattiDataTable
        Inherits System.Data.DataTable
        Implements System.Collections.IEnumerable
        
        Private columnIdContratto As System.Data.DataColumn
        
        Private columnIdTrattativa As System.Data.DataColumn
        
        Private columnCodiceTipoOffertaImmobile As System.Data.DataColumn
        
        Private columnContrattoDoc As System.Data.DataColumn
        
        Private columnDataContratto As System.Data.DataColumn
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Contratti"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal table As System.Data.DataTable)
            MyBase.New
            Me.TableName = 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
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdContrattoColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdContratto
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdTrattativaColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdTrattativa
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CodiceTipoOffertaImmobileColumn() As System.Data.DataColumn
            Get
                Return Me.columnCodiceTipoOffertaImmobile
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property ContrattoDocColumn() As System.Data.DataColumn
            Get
                Return Me.columnContrattoDoc
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property DataContrattoColumn() As System.Data.DataColumn
            Get
                Return Me.columnDataContratto
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As ContrattiRow
            Get
                Return CType(Me.Rows(index),ContrattiRow)
            End Get
        End Property
        
        Public Event ContrattiRowChanging As ContrattiRowChangeEventHandler
        
        Public Event ContrattiRowChanged As ContrattiRowChangeEventHandler
        
        Public Event ContrattiRowDeleting As ContrattiRowChangeEventHandler
        
        Public Event ContrattiRowDeleted As ContrattiRowChangeEventHandler
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Sub AddContrattiRow(ByVal row As ContrattiRow)
            Me.Rows.Add(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Function AddContrattiRow(ByVal IdTrattativa As Integer, ByVal parentTipoOffertaImmobileRowByFK__Contratti__Codic__1367E606 As TipoOffertaImmobileRow, ByVal ContrattoDoc As String, ByVal DataContratto As Date) As ContrattiRow
            Dim rowContrattiRow As ContrattiRow = CType(Me.NewRow,ContrattiRow)
            rowContrattiRow.ItemArray = New Object() {Nothing, IdTrattativa, parentTipoOffertaImmobileRowByFK__Contratti__Codic__1367E606(0), ContrattoDoc, DataContratto}
            Me.Rows.Add(rowContrattiRow)
            Return rowContrattiRow
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function FindByIdContratto(ByVal IdContratto As Integer) As ContrattiRow
            Return CType(Me.Rows.Find(New Object() {IdContratto}),ContrattiRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overridable Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overrides Function Clone() As System.Data.DataTable
            Dim cln As ContrattiDataTable = CType(MyBase.Clone,ContrattiDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function CreateInstance() As System.Data.DataTable
            Return New ContrattiDataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub InitVars()
            Me.columnIdContratto = MyBase.Columns("IdContratto")
            Me.columnIdTrattativa = MyBase.Columns("IdTrattativa")
            Me.columnCodiceTipoOffertaImmobile = MyBase.Columns("CodiceTipoOffertaImmobile")
            Me.columnContrattoDoc = MyBase.Columns("ContrattoDoc")
            Me.columnDataContratto = MyBase.Columns("DataContratto")
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitClass()
            Me.columnIdContratto = New System.Data.DataColumn("IdContratto", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdContratto)
            Me.columnIdTrattativa = New System.Data.DataColumn("IdTrattativa", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdTrattativa)
            Me.columnCodiceTipoOffertaImmobile = New System.Data.DataColumn("CodiceTipoOffertaImmobile", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCodiceTipoOffertaImmobile)
            Me.columnContrattoDoc = New System.Data.DataColumn("ContrattoDoc", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnContrattoDoc)
            Me.columnDataContratto = New System.Data.DataColumn("DataContratto", GetType(Date), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnDataContratto)
            Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnIdContratto}, true))
            Me.columnIdContratto.AutoIncrement = true
            Me.columnIdContratto.AllowDBNull = false
            Me.columnIdContratto.ReadOnly = true
            Me.columnIdContratto.Unique = true
            Me.columnIdTrattativa.AllowDBNull = false
            Me.columnCodiceTipoOffertaImmobile.MaxLength = 200
            Me.columnContrattoDoc.MaxLength = 2147483647
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function NewContrattiRow() As ContrattiRow
            Return CType(Me.NewRow,ContrattiRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
            Return New ContrattiRow(builder)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function GetRowType() As System.Type
            Return GetType(ContrattiRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.ContrattiRowChangedEvent) Is Nothing) Then
                RaiseEvent ContrattiRowChanged(Me, New ContrattiRowChangeEvent(CType(e.Row,ContrattiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanging(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.ContrattiRowChangingEvent) Is Nothing) Then
                RaiseEvent ContrattiRowChanging(Me, New ContrattiRowChangeEvent(CType(e.Row,ContrattiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.ContrattiRowDeletedEvent) Is Nothing) Then
                RaiseEvent ContrattiRowDeleted(Me, New ContrattiRowChangeEvent(CType(e.Row,ContrattiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.ContrattiRowDeletingEvent) Is Nothing) Then
                RaiseEvent ContrattiRowDeleting(Me, New ContrattiRowChangeEvent(CType(e.Row,ContrattiRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub RemoveContrattiRow(ByVal row As ContrattiRow)
            Me.Rows.Remove(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
            Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
            Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
            Dim ds As SmartEstateDataSet = New SmartEstateDataSet
            xs.Add(ds.GetSchemaSerializable)
            Dim any1 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "ContrattiDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Return type
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.Serializable(),  _
     System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class ImmobiliDataTable
        Inherits System.Data.DataTable
        Implements System.Collections.IEnumerable
        
        Private columnIdImmobile As System.Data.DataColumn
        
        Private columnIdAgenzia As System.Data.DataColumn
        
        Private columnCodiceImmobile As System.Data.DataColumn
        
        Private columnCodiceTipoImmobile As System.Data.DataColumn
        
        Private columnRiferimentoInterno As System.Data.DataColumn
        
        Private columnDescrizioneLunga As System.Data.DataColumn
        
        Private columnDescrizioneBreve As System.Data.DataColumn
        
        Private columnDimensione As System.Data.DataColumn
        
        Private columnIndirizzo As System.Data.DataColumn
        
        Private columnCAP As System.Data.DataColumn
        
        Private columnZona As System.Data.DataColumn
        
        Private columnCitta As System.Data.DataColumn
        
        Private columnFoto As System.Data.DataColumn
        
        Private columnPlanimetria As System.Data.DataColumn
        
        Private columnPrezzoMin As System.Data.DataColumn
        
        Private columnPrezzoMax As System.Data.DataColumn
        
        Private columnSpeseCondominiali As System.Data.DataColumn
        
        Private columnValutazione As System.Data.DataColumn
        
        Private columnSysTimestamp As System.Data.DataColumn
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Immobili"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal table As System.Data.DataTable)
            MyBase.New
            Me.TableName = 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
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdImmobileColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdImmobile
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdAgenziaColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdAgenzia
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CodiceImmobileColumn() As System.Data.DataColumn
            Get
                Return Me.columnCodiceImmobile
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CodiceTipoImmobileColumn() As System.Data.DataColumn
            Get
                Return Me.columnCodiceTipoImmobile
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property RiferimentoInternoColumn() As System.Data.DataColumn
            Get
                Return Me.columnRiferimentoInterno
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property DescrizioneLungaColumn() As System.Data.DataColumn
            Get
                Return Me.columnDescrizioneLunga
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property DescrizioneBreveColumn() As System.Data.DataColumn
            Get
                Return Me.columnDescrizioneBreve
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property DimensioneColumn() As System.Data.DataColumn
            Get
                Return Me.columnDimensione
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IndirizzoColumn() As System.Data.DataColumn
            Get
                Return Me.columnIndirizzo
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CAPColumn() As System.Data.DataColumn
            Get
                Return Me.columnCAP
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property ZonaColumn() As System.Data.DataColumn
            Get
                Return Me.columnZona
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CittaColumn() As System.Data.DataColumn
            Get
                Return Me.columnCitta
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property FotoColumn() As System.Data.DataColumn
            Get
                Return Me.columnFoto
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property PlanimetriaColumn() As System.Data.DataColumn
            Get
                Return Me.columnPlanimetria
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property PrezzoMinColumn() As System.Data.DataColumn
            Get
                Return Me.columnPrezzoMin
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property PrezzoMaxColumn() As System.Data.DataColumn
            Get
                Return Me.columnPrezzoMax
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property SpeseCondominialiColumn() As System.Data.DataColumn
            Get
                Return Me.columnSpeseCondominiali
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property ValutazioneColumn() As System.Data.DataColumn
            Get
                Return Me.columnValutazione
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property SysTimestampColumn() As System.Data.DataColumn
            Get
                Return Me.columnSysTimestamp
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As ImmobiliRow
            Get
                Return CType(Me.Rows(index),ImmobiliRow)
            End Get
        End Property
        
        Public Event ImmobiliRowChanging As ImmobiliRowChangeEventHandler
        
        Public Event ImmobiliRowChanged As ImmobiliRowChangeEventHandler
        
        Public Event ImmobiliRowDeleting As ImmobiliRowChangeEventHandler
        
        Public Event ImmobiliRowDeleted As ImmobiliRowChangeEventHandler
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Sub AddImmobiliRow(ByVal row As ImmobiliRow)
            Me.Rows.Add(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Function AddImmobiliRow( _
                    ByVal parentAgenzieRowByFK__Immobili__IdAgen__164452B1 As AgenzieRow,  _
                    ByVal CodiceImmobile As String,  _
                    ByVal parentTipoImmobileRowByFK__Immobili__Codice__15502E78 As TipoImmobileRow,  _
                    ByVal RiferimentoInterno As String,  _
                    ByVal DescrizioneLunga As String,  _
                    ByVal DescrizioneBreve As String,  _
                    ByVal Dimensione As Integer,  _
                    ByVal Indirizzo As String,  _
                    ByVal CAP As String,  _
                    ByVal Zona As String,  _
                    ByVal Citta As String,  _
                    ByVal Foto() As Byte,  _
                    ByVal Planimetria() As Byte,  _
                    ByVal PrezzoMin As Integer,  _
                    ByVal PrezzoMax As Integer,  _
                    ByVal SpeseCondominiali As Integer,  _
                    ByVal Valutazione As Integer,  _
                    ByVal SysTimestamp() As Byte) As ImmobiliRow
            Dim rowImmobiliRow As ImmobiliRow = CType(Me.NewRow,ImmobiliRow)
            rowImmobiliRow.ItemArray = New Object() {Nothing, parentAgenzieRowByFK__Immobili__IdAgen__164452B1(0), CodiceImmobile, parentTipoImmobileRowByFK__Immobili__Codice__15502E78(0), RiferimentoInterno, DescrizioneLunga, DescrizioneBreve, Dimensione, Indirizzo, CAP, Zona, Citta, Foto, Planimetria, PrezzoMin, PrezzoMax, SpeseCondominiali, Valutazione, SysTimestamp}
            Me.Rows.Add(rowImmobiliRow)
            Return rowImmobiliRow
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function FindByIdImmobile(ByVal IdImmobile As Integer) As ImmobiliRow
            Return CType(Me.Rows.Find(New Object() {IdImmobile}),ImmobiliRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overridable Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overrides Function Clone() As System.Data.DataTable
            Dim cln As ImmobiliDataTable = CType(MyBase.Clone,ImmobiliDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function CreateInstance() As System.Data.DataTable
            Return New ImmobiliDataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub InitVars()
            Me.columnIdImmobile = MyBase.Columns("IdImmobile")
            Me.columnIdAgenzia = MyBase.Columns("IdAgenzia")
            Me.columnCodiceImmobile = MyBase.Columns("CodiceImmobile")
            Me.columnCodiceTipoImmobile = MyBase.Columns("CodiceTipoImmobile")
            Me.columnRiferimentoInterno = MyBase.Columns("RiferimentoInterno")
            Me.columnDescrizioneLunga = MyBase.Columns("DescrizioneLunga")
            Me.columnDescrizioneBreve = MyBase.Columns("DescrizioneBreve")
            Me.columnDimensione = MyBase.Columns("Dimensione")
            Me.columnIndirizzo = MyBase.Columns("Indirizzo")
            Me.columnCAP = MyBase.Columns("CAP")
            Me.columnZona = MyBase.Columns("Zona")
            Me.columnCitta = MyBase.Columns("Citta")
            Me.columnFoto = MyBase.Columns("Foto")
            Me.columnPlanimetria = MyBase.Columns("Planimetria")
            Me.columnPrezzoMin = MyBase.Columns("PrezzoMin")
            Me.columnPrezzoMax = MyBase.Columns("PrezzoMax")
            Me.columnSpeseCondominiali = MyBase.Columns("SpeseCondominiali")
            Me.columnValutazione = MyBase.Columns("Valutazione")
            Me.columnSysTimestamp = MyBase.Columns("SysTimestamp")
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitClass()
            Me.columnIdImmobile = New System.Data.DataColumn("IdImmobile", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdImmobile)
            Me.columnIdAgenzia = New System.Data.DataColumn("IdAgenzia", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdAgenzia)
            Me.columnCodiceImmobile = New System.Data.DataColumn("CodiceImmobile", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCodiceImmobile)
            Me.columnCodiceTipoImmobile = New System.Data.DataColumn("CodiceTipoImmobile", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCodiceTipoImmobile)
            Me.columnRiferimentoInterno = New System.Data.DataColumn("RiferimentoInterno", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnRiferimentoInterno)
            Me.columnDescrizioneLunga = New System.Data.DataColumn("DescrizioneLunga", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnDescrizioneLunga)
            Me.columnDescrizioneBreve = New System.Data.DataColumn("DescrizioneBreve", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnDescrizioneBreve)
            Me.columnDimensione = New System.Data.DataColumn("Dimensione", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnDimensione)
            Me.columnIndirizzo = New System.Data.DataColumn("Indirizzo", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIndirizzo)
            Me.columnCAP = New System.Data.DataColumn("CAP", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCAP)
            Me.columnZona = New System.Data.DataColumn("Zona", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnZona)
            Me.columnCitta = New System.Data.DataColumn("Citta", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCitta)
            Me.columnFoto = New System.Data.DataColumn("Foto", GetType(Byte()), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFoto)
            Me.columnPlanimetria = New System.Data.DataColumn("Planimetria", GetType(Byte()), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnPlanimetria)
            Me.columnPrezzoMin = New System.Data.DataColumn("PrezzoMin", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnPrezzoMin)
            Me.columnPrezzoMax = New System.Data.DataColumn("PrezzoMax", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnPrezzoMax)
            Me.columnSpeseCondominiali = New System.Data.DataColumn("SpeseCondominiali", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnSpeseCondominiali)
            Me.columnValutazione = New System.Data.DataColumn("Valutazione", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnValutazione)
            Me.columnSysTimestamp = New System.Data.DataColumn("SysTimestamp", GetType(Byte()), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnSysTimestamp)
            Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnIdImmobile}, true))
            Me.columnIdImmobile.AutoIncrement = true
            Me.columnIdImmobile.AllowDBNull = false
            Me.columnIdImmobile.ReadOnly = true
            Me.columnIdImmobile.Unique = true
            Me.columnIdAgenzia.AllowDBNull = false
            Me.columnCodiceImmobile.MaxLength = 200
            Me.columnCodiceTipoImmobile.MaxLength = 200
            Me.columnRiferimentoInterno.MaxLength = 200
            Me.columnDescrizioneLunga.MaxLength = 200
            Me.columnDescrizioneBreve.MaxLength = 200
            Me.columnIndirizzo.MaxLength = 200
            Me.columnCAP.MaxLength = 5
            Me.columnZona.MaxLength = 200
            Me.columnCitta.MaxLength = 200
            Me.columnSysTimestamp.ReadOnly = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function NewImmobiliRow() As ImmobiliRow
            Return CType(Me.NewRow,ImmobiliRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
            Return New ImmobiliRow(builder)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function GetRowType() As System.Type
            Return GetType(ImmobiliRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.ImmobiliRowChangedEvent) Is Nothing) Then
                RaiseEvent ImmobiliRowChanged(Me, New ImmobiliRowChangeEvent(CType(e.Row,ImmobiliRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanging(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.ImmobiliRowChangingEvent) Is Nothing) Then
                RaiseEvent ImmobiliRowChanging(Me, New ImmobiliRowChangeEvent(CType(e.Row,ImmobiliRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.ImmobiliRowDeletedEvent) Is Nothing) Then
                RaiseEvent ImmobiliRowDeleted(Me, New ImmobiliRowChangeEvent(CType(e.Row,ImmobiliRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.ImmobiliRowDeletingEvent) Is Nothing) Then
                RaiseEvent ImmobiliRowDeleting(Me, New ImmobiliRowChangeEvent(CType(e.Row,ImmobiliRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub RemoveImmobiliRow(ByVal row As ImmobiliRow)
            Me.Rows.Remove(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
            Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
            Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
            Dim ds As SmartEstateDataSet = New SmartEstateDataSet
            xs.Add(ds.GetSchemaSerializable)
            Dim any1 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "ImmobiliDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Return type
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.Serializable(),  _
     System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class OfferteDataTable
        Inherits System.Data.DataTable
        Implements System.Collections.IEnumerable
        
        Private columnIdOfferta As System.Data.DataColumn
        
        Private columnIdPreventivo As System.Data.DataColumn
        
        Private columnOffertaDoc As System.Data.DataColumn
        
        Private columnCodiceTipoOffertaImmobile As System.Data.DataColumn
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Offerte"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal table As System.Data.DataTable)
            MyBase.New
            Me.TableName = 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
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdOffertaColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdOfferta
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdPreventivoColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdPreventivo
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property OffertaDocColumn() As System.Data.DataColumn
            Get
                Return Me.columnOffertaDoc
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CodiceTipoOffertaImmobileColumn() As System.Data.DataColumn
            Get
                Return Me.columnCodiceTipoOffertaImmobile
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As OfferteRow
            Get
                Return CType(Me.Rows(index),OfferteRow)
            End Get
        End Property
        
        Public Event OfferteRowChanging As OfferteRowChangeEventHandler
        
        Public Event OfferteRowChanged As OfferteRowChangeEventHandler
        
        Public Event OfferteRowDeleting As OfferteRowChangeEventHandler
        
        Public Event OfferteRowDeleted As OfferteRowChangeEventHandler
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Sub AddOfferteRow(ByVal row As OfferteRow)
            Me.Rows.Add(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Function AddOfferteRow(ByVal parentPreventiviRowByFK__Offerte__IdPreve__182C9B23 As PreventiviRow, ByVal OffertaDoc As String, ByVal parentTipoOffertaImmobileRowByFK__Offerte__CodiceT__173876EA As TipoOffertaImmobileRow) As OfferteRow
            Dim rowOfferteRow As OfferteRow = CType(Me.NewRow,OfferteRow)
            rowOfferteRow.ItemArray = New Object() {Nothing, parentPreventiviRowByFK__Offerte__IdPreve__182C9B23(0), OffertaDoc, parentTipoOffertaImmobileRowByFK__Offerte__CodiceT__173876EA(0)}
            Me.Rows.Add(rowOfferteRow)
            Return rowOfferteRow
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function FindByIdOfferta(ByVal IdOfferta As Integer) As OfferteRow
            Return CType(Me.Rows.Find(New Object() {IdOfferta}),OfferteRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overridable Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overrides Function Clone() As System.Data.DataTable
            Dim cln As OfferteDataTable = CType(MyBase.Clone,OfferteDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function CreateInstance() As System.Data.DataTable
            Return New OfferteDataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub InitVars()
            Me.columnIdOfferta = MyBase.Columns("IdOfferta")
            Me.columnIdPreventivo = MyBase.Columns("IdPreventivo")
            Me.columnOffertaDoc = MyBase.Columns("OffertaDoc")
            Me.columnCodiceTipoOffertaImmobile = MyBase.Columns("CodiceTipoOffertaImmobile")
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitClass()
            Me.columnIdOfferta = New System.Data.DataColumn("IdOfferta", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdOfferta)
            Me.columnIdPreventivo = New System.Data.DataColumn("IdPreventivo", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdPreventivo)
            Me.columnOffertaDoc = New System.Data.DataColumn("OffertaDoc", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnOffertaDoc)
            Me.columnCodiceTipoOffertaImmobile = New System.Data.DataColumn("CodiceTipoOffertaImmobile", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCodiceTipoOffertaImmobile)
            Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnIdOfferta}, true))
            Me.columnIdOfferta.AutoIncrement = true
            Me.columnIdOfferta.AllowDBNull = false
            Me.columnIdOfferta.ReadOnly = true
            Me.columnIdOfferta.Unique = true
            Me.columnOffertaDoc.MaxLength = 2147483647
            Me.columnCodiceTipoOffertaImmobile.MaxLength = 200
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function NewOfferteRow() As OfferteRow
            Return CType(Me.NewRow,OfferteRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
            Return New OfferteRow(builder)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function GetRowType() As System.Type
            Return GetType(OfferteRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.OfferteRowChangedEvent) Is Nothing) Then
                RaiseEvent OfferteRowChanged(Me, New OfferteRowChangeEvent(CType(e.Row,OfferteRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanging(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.OfferteRowChangingEvent) Is Nothing) Then
                RaiseEvent OfferteRowChanging(Me, New OfferteRowChangeEvent(CType(e.Row,OfferteRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.OfferteRowDeletedEvent) Is Nothing) Then
                RaiseEvent OfferteRowDeleted(Me, New OfferteRowChangeEvent(CType(e.Row,OfferteRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.OfferteRowDeletingEvent) Is Nothing) Then
                RaiseEvent OfferteRowDeleting(Me, New OfferteRowChangeEvent(CType(e.Row,OfferteRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub RemoveOfferteRow(ByVal row As OfferteRow)
            Me.Rows.Remove(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
            Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
            Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
            Dim ds As SmartEstateDataSet = New SmartEstateDataSet
            xs.Add(ds.GetSchemaSerializable)
            Dim any1 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "OfferteDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Return type
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.Serializable(),  _
     System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class PreventiviDataTable
        Inherits System.Data.DataTable
        Implements System.Collections.IEnumerable
        
        Private columnIdPreventivo As System.Data.DataColumn
        
        Private columnIdCliente As System.Data.DataColumn
        
        Private columnIdImmobile As System.Data.DataColumn
        
        Private columnIdAgente As System.Data.DataColumn
        
        Private columnAppuntamento As System.Data.DataColumn
        
        Private columnPreventivoDoc As System.Data.DataColumn
        
        Private columnCodiceTipoOffertaImmobile As System.Data.DataColumn
        
        Private columnSysTimestamp As System.Data.DataColumn
        
        Private columnAgente As System.Data.DataColumn
        
        Private columnNome As System.Data.DataColumn
        
        Private columnCognome As System.Data.DataColumn
        
        Private columnDescrizione As System.Data.DataColumn
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Preventivi"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal table As System.Data.DataTable)
            MyBase.New
            Me.TableName = 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
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdPreventivoColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdPreventivo
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdClienteColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdCliente
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdImmobileColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdImmobile
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property IdAgenteColumn() As System.Data.DataColumn
            Get
                Return Me.columnIdAgente
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property AppuntamentoColumn() As System.Data.DataColumn
            Get
                Return Me.columnAppuntamento
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property PreventivoDocColumn() As System.Data.DataColumn
            Get
                Return Me.columnPreventivoDoc
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CodiceTipoOffertaImmobileColumn() As System.Data.DataColumn
            Get
                Return Me.columnCodiceTipoOffertaImmobile
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property SysTimestampColumn() As System.Data.DataColumn
            Get
                Return Me.columnSysTimestamp
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property AgenteColumn() As System.Data.DataColumn
            Get
                Return Me.columnAgente
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property NomeColumn() As System.Data.DataColumn
            Get
                Return Me.columnNome
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CognomeColumn() As System.Data.DataColumn
            Get
                Return Me.columnCognome
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property DescrizioneColumn() As System.Data.DataColumn
            Get
                Return Me.columnDescrizione
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As PreventiviRow
            Get
                Return CType(Me.Rows(index),PreventiviRow)
            End Get
        End Property
        
        Public Event PreventiviRowChanging As PreventiviRowChangeEventHandler
        
        Public Event PreventiviRowChanged As PreventiviRowChangeEventHandler
        
        Public Event PreventiviRowDeleting As PreventiviRowChangeEventHandler
        
        Public Event PreventiviRowDeleted As PreventiviRowChangeEventHandler
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Sub AddPreventiviRow(ByVal row As PreventiviRow)
            Me.Rows.Add(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Function AddPreventiviRow(ByVal parentClientiRowByFK__Preventiv__IdCli__1920BF5C As ClientiRow, ByVal parentImmobiliRowByFK__Preventivi As ImmobiliRow, ByVal parentAgentiRowByFK__Preventiv__IdAge__1B0907CE As AgentiRow, ByVal Appuntamento As Date, ByVal PreventivoDoc As String, ByVal parentTipoOffertaImmobileRowByFK__Preventiv__Codic__117F9D94 As TipoOffertaImmobileRow, ByVal SysTimestamp() As Byte, ByVal Agente As String, ByVal Nome As String, ByVal Cognome As String, ByVal Descrizione As String) As PreventiviRow
            Dim rowPreventiviRow As PreventiviRow = CType(Me.NewRow,PreventiviRow)
            rowPreventiviRow.ItemArray = New Object() {Nothing, parentClientiRowByFK__Preventiv__IdCli__1920BF5C(0), parentImmobiliRowByFK__Preventivi(0), parentAgentiRowByFK__Preventiv__IdAge__1B0907CE(0), Appuntamento, PreventivoDoc, parentTipoOffertaImmobileRowByFK__Preventiv__Codic__117F9D94(0), SysTimestamp, Agente, Nome, Cognome, Descrizione}
            Me.Rows.Add(rowPreventiviRow)
            Return rowPreventiviRow
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function FindByIdPreventivo(ByVal IdPreventivo As Integer) As PreventiviRow
            Return CType(Me.Rows.Find(New Object() {IdPreventivo}),PreventiviRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overridable Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overrides Function Clone() As System.Data.DataTable
            Dim cln As PreventiviDataTable = CType(MyBase.Clone,PreventiviDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function CreateInstance() As System.Data.DataTable
            Return New PreventiviDataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub InitVars()
            Me.columnIdPreventivo = MyBase.Columns("IdPreventivo")
            Me.columnIdCliente = MyBase.Columns("IdCliente")
            Me.columnIdImmobile = MyBase.Columns("IdImmobile")
            Me.columnIdAgente = MyBase.Columns("IdAgente")
            Me.columnAppuntamento = MyBase.Columns("Appuntamento")
            Me.columnPreventivoDoc = MyBase.Columns("PreventivoDoc")
            Me.columnCodiceTipoOffertaImmobile = MyBase.Columns("CodiceTipoOffertaImmobile")
            Me.columnSysTimestamp = MyBase.Columns("SysTimestamp")
            Me.columnAgente = MyBase.Columns("Agente")
            Me.columnNome = MyBase.Columns("Nome")
            Me.columnCognome = MyBase.Columns("Cognome")
            Me.columnDescrizione = MyBase.Columns("Descrizione")
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitClass()
            Me.columnIdPreventivo = New System.Data.DataColumn("IdPreventivo", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdPreventivo)
            Me.columnIdCliente = New System.Data.DataColumn("IdCliente", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdCliente)
            Me.columnIdImmobile = New System.Data.DataColumn("IdImmobile", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdImmobile)
            Me.columnIdAgente = New System.Data.DataColumn("IdAgente", GetType(Integer), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnIdAgente)
            Me.columnAppuntamento = New System.Data.DataColumn("Appuntamento", GetType(Date), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnAppuntamento)
            Me.columnPreventivoDoc = New System.Data.DataColumn("PreventivoDoc", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnPreventivoDoc)
            Me.columnCodiceTipoOffertaImmobile = New System.Data.DataColumn("CodiceTipoOffertaImmobile", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCodiceTipoOffertaImmobile)
            Me.columnSysTimestamp = New System.Data.DataColumn("SysTimestamp", GetType(Byte()), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnSysTimestamp)
            Me.columnAgente = New System.Data.DataColumn("Agente", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnAgente)
            Me.columnNome = New System.Data.DataColumn("Nome", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnNome)
            Me.columnCognome = New System.Data.DataColumn("Cognome", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCognome)
            Me.columnDescrizione = New System.Data.DataColumn("Descrizione", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnDescrizione)
            Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnIdPreventivo}, true))
            Me.columnIdPreventivo.AutoIncrement = true
            Me.columnIdPreventivo.AllowDBNull = false
            Me.columnIdPreventivo.ReadOnly = true
            Me.columnIdPreventivo.Unique = true
            Me.columnIdCliente.AllowDBNull = false
            Me.columnIdImmobile.AllowDBNull = false
            Me.columnIdAgente.AllowDBNull = false
            Me.columnPreventivoDoc.MaxLength = 2147483647
            Me.columnCodiceTipoOffertaImmobile.MaxLength = 200
            Me.columnSysTimestamp.ReadOnly = true
            Me.columnAgente.MaxLength = 200
            Me.columnNome.MaxLength = 200
            Me.columnCognome.MaxLength = 200
            Me.columnDescrizione.MaxLength = 200
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function NewPreventiviRow() As PreventiviRow
            Return CType(Me.NewRow,PreventiviRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
            Return New PreventiviRow(builder)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function GetRowType() As System.Type
            Return GetType(PreventiviRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.PreventiviRowChangedEvent) Is Nothing) Then
                RaiseEvent PreventiviRowChanged(Me, New PreventiviRowChangeEvent(CType(e.Row,PreventiviRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanging(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.PreventiviRowChangingEvent) Is Nothing) Then
                RaiseEvent PreventiviRowChanging(Me, New PreventiviRowChangeEvent(CType(e.Row,PreventiviRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.PreventiviRowDeletedEvent) Is Nothing) Then
                RaiseEvent PreventiviRowDeleted(Me, New PreventiviRowChangeEvent(CType(e.Row,PreventiviRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.PreventiviRowDeletingEvent) Is Nothing) Then
                RaiseEvent PreventiviRowDeleting(Me, New PreventiviRowChangeEvent(CType(e.Row,PreventiviRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub RemovePreventiviRow(ByVal row As PreventiviRow)
            Me.Rows.Remove(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
            Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
            Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
            Dim ds As SmartEstateDataSet = New SmartEstateDataSet
            xs.Add(ds.GetSchemaSerializable)
            Dim any1 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "PreventiviDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Return type
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.Serializable(),  _
     System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class TipoImmobileDataTable
        Inherits System.Data.DataTable
        Implements System.Collections.IEnumerable
        
        Private columnCodiceTipoImmobile As System.Data.DataColumn
        
        Private columnDescrizione As System.Data.DataColumn
        
        Private columnSysTimestamp As System.Data.DataColumn
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "TipoImmobile"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal table As System.Data.DataTable)
            MyBase.New
            Me.TableName = 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
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CodiceTipoImmobileColumn() As System.Data.DataColumn
            Get
                Return Me.columnCodiceTipoImmobile
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property DescrizioneColumn() As System.Data.DataColumn
            Get
                Return Me.columnDescrizione
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property SysTimestampColumn() As System.Data.DataColumn
            Get
                Return Me.columnSysTimestamp
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As TipoImmobileRow
            Get
                Return CType(Me.Rows(index),TipoImmobileRow)
            End Get
        End Property
        
        Public Event TipoImmobileRowChanging As TipoImmobileRowChangeEventHandler
        
        Public Event TipoImmobileRowChanged As TipoImmobileRowChangeEventHandler
        
        Public Event TipoImmobileRowDeleting As TipoImmobileRowChangeEventHandler
        
        Public Event TipoImmobileRowDeleted As TipoImmobileRowChangeEventHandler
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Sub AddTipoImmobileRow(ByVal row As TipoImmobileRow)
            Me.Rows.Add(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Function AddTipoImmobileRow(ByVal CodiceTipoImmobile As String, ByVal Descrizione As String, ByVal SysTimestamp() As Byte) As TipoImmobileRow
            Dim rowTipoImmobileRow As TipoImmobileRow = CType(Me.NewRow,TipoImmobileRow)
            rowTipoImmobileRow.ItemArray = New Object() {CodiceTipoImmobile, Descrizione, SysTimestamp}
            Me.Rows.Add(rowTipoImmobileRow)
            Return rowTipoImmobileRow
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function FindByCodiceTipoImmobile(ByVal CodiceTipoImmobile As String) As TipoImmobileRow
            Return CType(Me.Rows.Find(New Object() {CodiceTipoImmobile}),TipoImmobileRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overridable Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overrides Function Clone() As System.Data.DataTable
            Dim cln As TipoImmobileDataTable = CType(MyBase.Clone,TipoImmobileDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function CreateInstance() As System.Data.DataTable
            Return New TipoImmobileDataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub InitVars()
            Me.columnCodiceTipoImmobile = MyBase.Columns("CodiceTipoImmobile")
            Me.columnDescrizione = MyBase.Columns("Descrizione")
            Me.columnSysTimestamp = MyBase.Columns("SysTimestamp")
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitClass()
            Me.columnCodiceTipoImmobile = New System.Data.DataColumn("CodiceTipoImmobile", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCodiceTipoImmobile)
            Me.columnDescrizione = New System.Data.DataColumn("Descrizione", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnDescrizione)
            Me.columnSysTimestamp = New System.Data.DataColumn("SysTimestamp", GetType(Byte()), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnSysTimestamp)
            Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnCodiceTipoImmobile}, true))
            Me.columnCodiceTipoImmobile.AllowDBNull = false
            Me.columnCodiceTipoImmobile.Unique = true
            Me.columnCodiceTipoImmobile.MaxLength = 200
            Me.columnDescrizione.MaxLength = 200
            Me.columnSysTimestamp.ReadOnly = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function NewTipoImmobileRow() As TipoImmobileRow
            Return CType(Me.NewRow,TipoImmobileRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
            Return New TipoImmobileRow(builder)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function GetRowType() As System.Type
            Return GetType(TipoImmobileRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.TipoImmobileRowChangedEvent) Is Nothing) Then
                RaiseEvent TipoImmobileRowChanged(Me, New TipoImmobileRowChangeEvent(CType(e.Row,TipoImmobileRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanging(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.TipoImmobileRowChangingEvent) Is Nothing) Then
                RaiseEvent TipoImmobileRowChanging(Me, New TipoImmobileRowChangeEvent(CType(e.Row,TipoImmobileRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.TipoImmobileRowDeletedEvent) Is Nothing) Then
                RaiseEvent TipoImmobileRowDeleted(Me, New TipoImmobileRowChangeEvent(CType(e.Row,TipoImmobileRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.TipoImmobileRowDeletingEvent) Is Nothing) Then
                RaiseEvent TipoImmobileRowDeleting(Me, New TipoImmobileRowChangeEvent(CType(e.Row,TipoImmobileRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub RemoveTipoImmobileRow(ByVal row As TipoImmobileRow)
            Me.Rows.Remove(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
            Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
            Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
            Dim ds As SmartEstateDataSet = New SmartEstateDataSet
            xs.Add(ds.GetSchemaSerializable)
            Dim any1 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "TipoImmobileDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Return type
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.Serializable(),  _
     System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class TipoOffertaImmobileDataTable
        Inherits System.Data.DataTable
        Implements System.Collections.IEnumerable
        
        Private columnCodiceTipoOffertaImmobile As System.Data.DataColumn
        
        Private columnDescrizione As System.Data.DataColumn
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "TipoOffertaImmobile"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal table As System.Data.DataTable)
            MyBase.New
            Me.TableName = 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
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property CodiceTipoOffertaImmobileColumn() As System.Data.DataColumn
            Get
                Return Me.columnCodiceTipoOffertaImmobile
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property DescrizioneColumn() As System.Data.DataColumn
            Get
                Return Me.columnDescrizione
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As TipoOffertaImmobileRow
            Get
                Return CType(Me.Rows(index),TipoOffertaImmobileRow)
            End Get
        End Property
        
        Public Event TipoOffertaImmobileRowChanging As TipoOffertaImmobileRowChangeEventHandler
        
        Public Event TipoOffertaImmobileRowChanged As TipoOffertaImmobileRowChangeEventHandler
        
        Public Event TipoOffertaImmobileRowDeleting As TipoOffertaImmobileRowChangeEventHandler
        
        Public Event TipoOffertaImmobileRowDeleted As TipoOffertaImmobileRowChangeEventHandler
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Sub AddTipoOffertaImmobileRow(ByVal row As TipoOffertaImmobileRow)
            Me.Rows.Add(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overloads Function AddTipoOffertaImmobileRow(ByVal CodiceTipoOffertaImmobile As String, ByVal Descrizione As String) As TipoOffertaImmobileRow
            Dim rowTipoOffertaImmobileRow As TipoOffertaImmobileRow = CType(Me.NewRow,TipoOffertaImmobileRow)
            rowTipoOffertaImmobileRow.ItemArray = New Object() {CodiceTipoOffertaImmobile, Descrizione}
            Me.Rows.Add(rowTipoOffertaImmobileRow)
            Return rowTipoOffertaImmobileRow
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function FindByCodiceTipoOffertaImmobile(ByVal CodiceTipoOffertaImmobile As String) As TipoOffertaImmobileRow
            Return CType(Me.Rows.Find(New Object() {CodiceTipoOffertaImmobile}),TipoOffertaImmobileRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overridable Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Overrides Function Clone() As System.Data.DataTable
            Dim cln As TipoOffertaImmobileDataTable = CType(MyBase.Clone,TipoOffertaImmobileDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function CreateInstance() As System.Data.DataTable
            Return New TipoOffertaImmobileDataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub InitVars()
            Me.columnCodiceTipoOffertaImmobile = MyBase.Columns("CodiceTipoOffertaImmobile")
            Me.columnDescrizione = MyBase.Columns("Descrizione")
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitClass()
            Me.columnCodiceTipoOffertaImmobile = New System.Data.DataColumn("CodiceTipoOffertaImmobile", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCodiceTipoOffertaImmobile)
            Me.columnDescrizione = New System.Data.DataColumn("Descrizione", GetType(String), Nothing, System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnDescrizione)
            Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnCodiceTipoOffertaImmobile}, true))
            Me.columnCodiceTipoOffertaImmobile.AllowDBNull = false
            Me.columnCodiceTipoOffertaImmobile.Unique = true
            Me.columnCodiceTipoOffertaImmobile.MaxLength = 200
            Me.columnDescrizione.MaxLength = 200
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function NewTipoOffertaImmobileRow() As TipoOffertaImmobileRow
            Return CType(Me.NewRow,TipoOffertaImmobileRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
            Return New TipoOffertaImmobileRow(builder)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Function GetRowType() As System.Type
            Return GetType(TipoOffertaImmobileRow)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.TipoOffertaImmobileRowChangedEvent) Is Nothing) Then
                RaiseEvent TipoOffertaImmobileRowChanged(Me, New TipoOffertaImmobileRowChangeEvent(CType(e.Row,TipoOffertaImmobileRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowChanging(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.TipoOffertaImmobileRowChangingEvent) Is Nothing) Then
                RaiseEvent TipoOffertaImmobileRowChanging(Me, New TipoOffertaImmobileRowChangeEvent(CType(e.Row,TipoOffertaImmobileRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.TipoOffertaImmobileRowDeletedEvent) Is Nothing) Then
                RaiseEvent TipoOffertaImmobileRowDeleted(Me, New TipoOffertaImmobileRowChangeEvent(CType(e.Row,TipoOffertaImmobileRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.TipoOffertaImmobileRowDeletingEvent) Is Nothing) Then
                RaiseEvent TipoOffertaImmobileRowDeleting(Me, New TipoOffertaImmobileRowChangeEvent(CType(e.Row,TipoOffertaImmobileRow), e.Action))
            End If
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub RemoveTipoOffertaImmobileRow(ByVal row As TipoOffertaImmobileRow)
            Me.Rows.Remove(row)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
            Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
            Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
            Dim ds As SmartEstateDataSet = New SmartEstateDataSet
            xs.Add(ds.GetSchemaSerializable)
            Dim any1 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "TipoOffertaImmobileDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Return type
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Partial Public Class AgentiRow
        Inherits System.Data.DataRow
        
        Private tableAgenti As AgentiDataTable
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableAgenti = CType(Me.Table,AgentiDataTable)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdAgente() As Integer
            Get
                Return CType(Me(Me.tableAgenti.IdAgenteColumn),Integer)
            End Get
            Set
                Me(Me.tableAgenti.IdAgenteColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Indirizzo() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenti.IndirizzoColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Indirizzo' in table 'Agenti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenti.IndirizzoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CAP() As String
            Get
                Return CType(Me(Me.tableAgenti.CAPColumn),String)
            End Get
            Set
                Me(Me.tableAgenti.CAPColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Citta() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenti.CittaColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Citta' in table 'Agenti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenti.CittaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdAgenzia() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableAgenti.IdAgenziaColumn),Integer)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'IdAgenzia' in table 'Agenti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenti.IdAgenziaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property TelefonoNumero() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenti.TelefonoNumeroColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'TelefonoNumero' in table 'Agenti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenti.TelefonoNumeroColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Nome() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenti.NomeColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Nome' in table 'Agenti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenti.NomeColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property TelefonoPrefisso() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenti.TelefonoPrefissoColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'TelefonoPrefisso' in table 'Agenti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenti.TelefonoPrefissoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Cognome() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenti.CognomeColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Cognome' in table 'Agenti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenti.CognomeColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Email() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenti.EmailColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Email' in table 'Agenti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenti.EmailColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property AgenzieRow() As AgenzieRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Agenti__IdAgenzi__117F9D94")),AgenzieRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Agenti__IdAgenzi__117F9D94"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsIndirizzoNull() As Boolean
            Return Me.IsNull(Me.tableAgenti.IndirizzoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetIndirizzoNull()
            Me(Me.tableAgenti.IndirizzoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCittaNull() As Boolean
            Return Me.IsNull(Me.tableAgenti.CittaColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCittaNull()
            Me(Me.tableAgenti.CittaColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsIdAgenziaNull() As Boolean
            Return Me.IsNull(Me.tableAgenti.IdAgenziaColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetIdAgenziaNull()
            Me(Me.tableAgenti.IdAgenziaColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsTelefonoNumeroNull() As Boolean
            Return Me.IsNull(Me.tableAgenti.TelefonoNumeroColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetTelefonoNumeroNull()
            Me(Me.tableAgenti.TelefonoNumeroColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsNomeNull() As Boolean
            Return Me.IsNull(Me.tableAgenti.NomeColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetNomeNull()
            Me(Me.tableAgenti.NomeColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsTelefonoPrefissoNull() As Boolean
            Return Me.IsNull(Me.tableAgenti.TelefonoPrefissoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetTelefonoPrefissoNull()
            Me(Me.tableAgenti.TelefonoPrefissoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCognomeNull() As Boolean
            Return Me.IsNull(Me.tableAgenti.CognomeColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCognomeNull()
            Me(Me.tableAgenti.CognomeColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsEmailNull() As Boolean
            Return Me.IsNull(Me.tableAgenti.EmailColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetEmailNull()
            Me(Me.tableAgenti.EmailColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetPreventiviRows() As PreventiviRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Preventiv__IdAge__1B0907CE")),PreventiviRow())
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Partial Public Class AgenzieRow
        Inherits System.Data.DataRow
        
        Private tableAgenzie As AgenzieDataTable
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableAgenzie = CType(Me.Table,AgenzieDataTable)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdAgenzia() As Integer
            Get
                Return CType(Me(Me.tableAgenzie.IdAgenziaColumn),Integer)
            End Get
            Set
                Me(Me.tableAgenzie.IdAgenziaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property RagioneSociale() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.RagioneSocialeColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'RagioneSociale' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.RagioneSocialeColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Indirizzo() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.IndirizzoColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Indirizzo' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.IndirizzoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CAP() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.CAPColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'CAP' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.CAPColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Citta() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.CittaColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Citta' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.CittaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property PartitaIVA() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.PartitaIVAColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'PartitaIVA' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.PartitaIVAColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property TelefonoNumero() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.TelefonoNumeroColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'TelefonoNumero' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.TelefonoNumeroColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property TelefonoPrefisso() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.TelefonoPrefissoColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'TelefonoPrefisso' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.TelefonoPrefissoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property FaxPrefisso() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.FaxPrefissoColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'FaxPrefisso' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.FaxPrefissoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property FaxNumero() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.FaxNumeroColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'FaxNumero' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.FaxNumeroColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IndirizzoWeb() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.IndirizzoWebColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'IndirizzoWeb' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.IndirizzoWebColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Email() As String
            Get
                Try 
                    Return CType(Me(Me.tableAgenzie.EmailColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Email' in table 'Agenzie' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableAgenzie.EmailColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsRagioneSocialeNull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.RagioneSocialeColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetRagioneSocialeNull()
            Me(Me.tableAgenzie.RagioneSocialeColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsIndirizzoNull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.IndirizzoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetIndirizzoNull()
            Me(Me.tableAgenzie.IndirizzoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCAPNull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.CAPColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCAPNull()
            Me(Me.tableAgenzie.CAPColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCittaNull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.CittaColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCittaNull()
            Me(Me.tableAgenzie.CittaColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsPartitaIVANull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.PartitaIVAColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetPartitaIVANull()
            Me(Me.tableAgenzie.PartitaIVAColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsTelefonoNumeroNull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.TelefonoNumeroColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetTelefonoNumeroNull()
            Me(Me.tableAgenzie.TelefonoNumeroColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsTelefonoPrefissoNull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.TelefonoPrefissoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetTelefonoPrefissoNull()
            Me(Me.tableAgenzie.TelefonoPrefissoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsFaxPrefissoNull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.FaxPrefissoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetFaxPrefissoNull()
            Me(Me.tableAgenzie.FaxPrefissoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsFaxNumeroNull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.FaxNumeroColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetFaxNumeroNull()
            Me(Me.tableAgenzie.FaxNumeroColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsIndirizzoWebNull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.IndirizzoWebColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetIndirizzoWebNull()
            Me(Me.tableAgenzie.IndirizzoWebColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsEmailNull() As Boolean
            Return Me.IsNull(Me.tableAgenzie.EmailColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetEmailNull()
            Me(Me.tableAgenzie.EmailColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetAgentiRows() As AgentiRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Agenti__IdAgenzi__117F9D94")),AgentiRow())
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetClientiRows() As ClientiRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Clienti__IdAgenz__1273C1CD")),ClientiRow())
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetImmobiliRows() As ImmobiliRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Immobili__IdAgen__164452B1")),ImmobiliRow())
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Partial Public Class ClientiRow
        Inherits System.Data.DataRow
        
        Private tableClienti As ClientiDataTable
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableClienti = CType(Me.Table,ClientiDataTable)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdCliente() As Integer
            Get
                Return CType(Me(Me.tableClienti.IdClienteColumn),Integer)
            End Get
            Set
                Me(Me.tableClienti.IdClienteColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdAgenzia() As Integer
            Get
                Return CType(Me(Me.tableClienti.IdAgenziaColumn),Integer)
            End Get
            Set
                Me(Me.tableClienti.IdAgenziaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Nome() As String
            Get
                Try 
                    Return CType(Me(Me.tableClienti.NomeColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Nome' in table 'Clienti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableClienti.NomeColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Cognome() As String
            Get
                Try 
                    Return CType(Me(Me.tableClienti.CognomeColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Cognome' in table 'Clienti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableClienti.CognomeColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Indirizzo() As String
            Get
                Try 
                    Return CType(Me(Me.tableClienti.IndirizzoColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Indirizzo' in table 'Clienti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableClienti.IndirizzoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CAP() As String
            Get
                Try 
                    Return CType(Me(Me.tableClienti.CAPColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'CAP' in table 'Clienti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableClienti.CAPColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Citta() As String
            Get
                Try 
                    Return CType(Me(Me.tableClienti.CittaColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Citta' in table 'Clienti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableClienti.CittaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property TelefonoPrefisso() As String
            Get
                Try 
                    Return CType(Me(Me.tableClienti.TelefonoPrefissoColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'TelefonoPrefisso' in table 'Clienti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableClienti.TelefonoPrefissoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property TelefonoNumero() As String
            Get
                Try 
                    Return CType(Me(Me.tableClienti.TelefonoNumeroColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'TelefonoNumero' in table 'Clienti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableClienti.TelefonoNumeroColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property AgenzieRow() As AgenzieRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Clienti__IdAgenz__1273C1CD")),AgenzieRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Clienti__IdAgenz__1273C1CD"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsNomeNull() As Boolean
            Return Me.IsNull(Me.tableClienti.NomeColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetNomeNull()
            Me(Me.tableClienti.NomeColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCognomeNull() As Boolean
            Return Me.IsNull(Me.tableClienti.CognomeColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCognomeNull()
            Me(Me.tableClienti.CognomeColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsIndirizzoNull() As Boolean
            Return Me.IsNull(Me.tableClienti.IndirizzoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetIndirizzoNull()
            Me(Me.tableClienti.IndirizzoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCAPNull() As Boolean
            Return Me.IsNull(Me.tableClienti.CAPColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCAPNull()
            Me(Me.tableClienti.CAPColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCittaNull() As Boolean
            Return Me.IsNull(Me.tableClienti.CittaColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCittaNull()
            Me(Me.tableClienti.CittaColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsTelefonoPrefissoNull() As Boolean
            Return Me.IsNull(Me.tableClienti.TelefonoPrefissoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetTelefonoPrefissoNull()
            Me(Me.tableClienti.TelefonoPrefissoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsTelefonoNumeroNull() As Boolean
            Return Me.IsNull(Me.tableClienti.TelefonoNumeroColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetTelefonoNumeroNull()
            Me(Me.tableClienti.TelefonoNumeroColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetPreventiviRows() As PreventiviRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Preventiv__IdCli__1920BF5C")),PreventiviRow())
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Partial Public Class ContrattiRow
        Inherits System.Data.DataRow
        
        Private tableContratti As ContrattiDataTable
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableContratti = CType(Me.Table,ContrattiDataTable)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdContratto() As Integer
            Get
                Return CType(Me(Me.tableContratti.IdContrattoColumn),Integer)
            End Get
            Set
                Me(Me.tableContratti.IdContrattoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdTrattativa() As Integer
            Get
                Return CType(Me(Me.tableContratti.IdTrattativaColumn),Integer)
            End Get
            Set
                Me(Me.tableContratti.IdTrattativaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CodiceTipoOffertaImmobile() As String
            Get
                Try 
                    Return CType(Me(Me.tableContratti.CodiceTipoOffertaImmobileColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'CodiceTipoOffertaImmobile' in table 'Contratti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableContratti.CodiceTipoOffertaImmobileColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ContrattoDoc() As String
            Get
                Try 
                    Return CType(Me(Me.tableContratti.ContrattoDocColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'ContrattoDoc' in table 'Contratti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableContratti.ContrattoDocColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property DataContratto() As Date
            Get
                Try 
                    Return CType(Me(Me.tableContratti.DataContrattoColumn),Date)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'DataContratto' in table 'Contratti' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableContratti.DataContrattoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property TipoOffertaImmobileRow() As TipoOffertaImmobileRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Contratti__Codic__1367E606")),TipoOffertaImmobileRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Contratti__Codic__1367E606"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCodiceTipoOffertaImmobileNull() As Boolean
            Return Me.IsNull(Me.tableContratti.CodiceTipoOffertaImmobileColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCodiceTipoOffertaImmobileNull()
            Me(Me.tableContratti.CodiceTipoOffertaImmobileColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsContrattoDocNull() As Boolean
            Return Me.IsNull(Me.tableContratti.ContrattoDocColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetContrattoDocNull()
            Me(Me.tableContratti.ContrattoDocColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsDataContrattoNull() As Boolean
            Return Me.IsNull(Me.tableContratti.DataContrattoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetDataContrattoNull()
            Me(Me.tableContratti.DataContrattoColumn) = System.Convert.DBNull
        End Sub
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Partial Public Class ImmobiliRow
        Inherits System.Data.DataRow
        
        Private tableImmobili As ImmobiliDataTable
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableImmobili = CType(Me.Table,ImmobiliDataTable)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdImmobile() As Integer
            Get
                Return CType(Me(Me.tableImmobili.IdImmobileColumn),Integer)
            End Get
            Set
                Me(Me.tableImmobili.IdImmobileColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdAgenzia() As Integer
            Get
                Return CType(Me(Me.tableImmobili.IdAgenziaColumn),Integer)
            End Get
            Set
                Me(Me.tableImmobili.IdAgenziaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CodiceImmobile() As String
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.CodiceImmobileColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'CodiceImmobile' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.CodiceImmobileColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CodiceTipoImmobile() As String
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.CodiceTipoImmobileColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'CodiceTipoImmobile' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.CodiceTipoImmobileColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property RiferimentoInterno() As String
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.RiferimentoInternoColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'RiferimentoInterno' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.RiferimentoInternoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property DescrizioneLunga() As String
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.DescrizioneLungaColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'DescrizioneLunga' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.DescrizioneLungaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property DescrizioneBreve() As String
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.DescrizioneBreveColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'DescrizioneBreve' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.DescrizioneBreveColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Dimensione() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.DimensioneColumn),Integer)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Dimensione' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.DimensioneColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Indirizzo() As String
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.IndirizzoColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Indirizzo' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.IndirizzoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CAP() As String
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.CAPColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'CAP' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.CAPColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Zona() As String
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.ZonaColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Zona' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.ZonaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Citta() As String
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.CittaColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Citta' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.CittaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Foto() As Byte()
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.FotoColumn),Byte())
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Foto' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.FotoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Planimetria() As Byte()
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.PlanimetriaColumn),Byte())
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Planimetria' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.PlanimetriaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property PrezzoMin() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.PrezzoMinColumn),Integer)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'PrezzoMin' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.PrezzoMinColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property PrezzoMax() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.PrezzoMaxColumn),Integer)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'PrezzoMax' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.PrezzoMaxColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property SpeseCondominiali() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.SpeseCondominialiColumn),Integer)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'SpeseCondominiali' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.SpeseCondominialiColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Valutazione() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.ValutazioneColumn),Integer)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Valutazione' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.ValutazioneColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property SysTimestamp() As Byte()
            Get
                Try 
                    Return CType(Me(Me.tableImmobili.SysTimestampColumn),Byte())
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'SysTimestamp' in table 'Immobili' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableImmobili.SysTimestampColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property TipoImmobileRow() As TipoImmobileRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Immobili__Codice__15502E78")),TipoImmobileRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Immobili__Codice__15502E78"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property AgenzieRow() As AgenzieRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Immobili__IdAgen__164452B1")),AgenzieRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Immobili__IdAgen__164452B1"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCodiceImmobileNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.CodiceImmobileColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCodiceImmobileNull()
            Me(Me.tableImmobili.CodiceImmobileColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCodiceTipoImmobileNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.CodiceTipoImmobileColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCodiceTipoImmobileNull()
            Me(Me.tableImmobili.CodiceTipoImmobileColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsRiferimentoInternoNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.RiferimentoInternoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetRiferimentoInternoNull()
            Me(Me.tableImmobili.RiferimentoInternoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsDescrizioneLungaNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.DescrizioneLungaColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetDescrizioneLungaNull()
            Me(Me.tableImmobili.DescrizioneLungaColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsDescrizioneBreveNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.DescrizioneBreveColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetDescrizioneBreveNull()
            Me(Me.tableImmobili.DescrizioneBreveColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsDimensioneNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.DimensioneColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetDimensioneNull()
            Me(Me.tableImmobili.DimensioneColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsIndirizzoNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.IndirizzoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetIndirizzoNull()
            Me(Me.tableImmobili.IndirizzoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCAPNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.CAPColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCAPNull()
            Me(Me.tableImmobili.CAPColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsZonaNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.ZonaColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetZonaNull()
            Me(Me.tableImmobili.ZonaColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCittaNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.CittaColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCittaNull()
            Me(Me.tableImmobili.CittaColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsFotoNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.FotoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetFotoNull()
            Me(Me.tableImmobili.FotoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsPlanimetriaNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.PlanimetriaColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetPlanimetriaNull()
            Me(Me.tableImmobili.PlanimetriaColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsPrezzoMinNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.PrezzoMinColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetPrezzoMinNull()
            Me(Me.tableImmobili.PrezzoMinColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsPrezzoMaxNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.PrezzoMaxColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetPrezzoMaxNull()
            Me(Me.tableImmobili.PrezzoMaxColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsSpeseCondominialiNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.SpeseCondominialiColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetSpeseCondominialiNull()
            Me(Me.tableImmobili.SpeseCondominialiColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsValutazioneNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.ValutazioneColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetValutazioneNull()
            Me(Me.tableImmobili.ValutazioneColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsSysTimestampNull() As Boolean
            Return Me.IsNull(Me.tableImmobili.SysTimestampColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetSysTimestampNull()
            Me(Me.tableImmobili.SysTimestampColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetPreventiviRows() As PreventiviRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Preventivi")),PreventiviRow())
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Partial Public Class OfferteRow
        Inherits System.Data.DataRow
        
        Private tableOfferte As OfferteDataTable
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableOfferte = CType(Me.Table,OfferteDataTable)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdOfferta() As Integer
            Get
                Return CType(Me(Me.tableOfferte.IdOffertaColumn),Integer)
            End Get
            Set
                Me(Me.tableOfferte.IdOffertaColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdPreventivo() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableOfferte.IdPreventivoColumn),Integer)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'IdPreventivo' in table 'Offerte' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableOfferte.IdPreventivoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property OffertaDoc() As String
            Get
                Try 
                    Return CType(Me(Me.tableOfferte.OffertaDocColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'OffertaDoc' in table 'Offerte' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableOfferte.OffertaDocColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CodiceTipoOffertaImmobile() As String
            Get
                Try 
                    Return CType(Me(Me.tableOfferte.CodiceTipoOffertaImmobileColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'CodiceTipoOffertaImmobile' in table 'Offerte' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableOfferte.CodiceTipoOffertaImmobileColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property TipoOffertaImmobileRow() As TipoOffertaImmobileRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Offerte__CodiceT__173876EA")),TipoOffertaImmobileRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Offerte__CodiceT__173876EA"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property PreventiviRow() As PreventiviRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Offerte__IdPreve__182C9B23")),PreventiviRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Offerte__IdPreve__182C9B23"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsIdPreventivoNull() As Boolean
            Return Me.IsNull(Me.tableOfferte.IdPreventivoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetIdPreventivoNull()
            Me(Me.tableOfferte.IdPreventivoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsOffertaDocNull() As Boolean
            Return Me.IsNull(Me.tableOfferte.OffertaDocColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetOffertaDocNull()
            Me(Me.tableOfferte.OffertaDocColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCodiceTipoOffertaImmobileNull() As Boolean
            Return Me.IsNull(Me.tableOfferte.CodiceTipoOffertaImmobileColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCodiceTipoOffertaImmobileNull()
            Me(Me.tableOfferte.CodiceTipoOffertaImmobileColumn) = System.Convert.DBNull
        End Sub
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Partial Public Class PreventiviRow
        Inherits System.Data.DataRow
        
        Private tablePreventivi As PreventiviDataTable
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tablePreventivi = CType(Me.Table,PreventiviDataTable)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdPreventivo() As Integer
            Get
                Return CType(Me(Me.tablePreventivi.IdPreventivoColumn),Integer)
            End Get
            Set
                Me(Me.tablePreventivi.IdPreventivoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdCliente() As Integer
            Get
                Return CType(Me(Me.tablePreventivi.IdClienteColumn),Integer)
            End Get
            Set
                Me(Me.tablePreventivi.IdClienteColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdImmobile() As Integer
            Get
                Return CType(Me(Me.tablePreventivi.IdImmobileColumn),Integer)
            End Get
            Set
                Me(Me.tablePreventivi.IdImmobileColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property IdAgente() As Integer
            Get
                Return CType(Me(Me.tablePreventivi.IdAgenteColumn),Integer)
            End Get
            Set
                Me(Me.tablePreventivi.IdAgenteColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Appuntamento() As Date
            Get
                Try 
                    Return CType(Me(Me.tablePreventivi.AppuntamentoColumn),Date)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Appuntamento' in table 'Preventivi' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tablePreventivi.AppuntamentoColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property PreventivoDoc() As String
            Get
                Try 
                    Return CType(Me(Me.tablePreventivi.PreventivoDocColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'PreventivoDoc' in table 'Preventivi' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tablePreventivi.PreventivoDocColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CodiceTipoOffertaImmobile() As String
            Get
                Try 
                    Return CType(Me(Me.tablePreventivi.CodiceTipoOffertaImmobileColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'CodiceTipoOffertaImmobile' in table 'Preventivi' is DBNull."& _ 
                            "", e)
                End Try
            End Get
            Set
                Me(Me.tablePreventivi.CodiceTipoOffertaImmobileColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property SysTimestamp() As Byte()
            Get
                Try 
                    Return CType(Me(Me.tablePreventivi.SysTimestampColumn),Byte())
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'SysTimestamp' in table 'Preventivi' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tablePreventivi.SysTimestampColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Agente() As String
            Get
                Try 
                    Return CType(Me(Me.tablePreventivi.AgenteColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Agente' in table 'Preventivi' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tablePreventivi.AgenteColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Nome() As String
            Get
                Try 
                    Return CType(Me(Me.tablePreventivi.NomeColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Nome' in table 'Preventivi' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tablePreventivi.NomeColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Cognome() As String
            Get
                Try 
                    Return CType(Me(Me.tablePreventivi.CognomeColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Cognome' in table 'Preventivi' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tablePreventivi.CognomeColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Descrizione() As String
            Get
                Try 
                    Return CType(Me(Me.tablePreventivi.DescrizioneColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Descrizione' in table 'Preventivi' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tablePreventivi.DescrizioneColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property TipoOffertaImmobileRow() As TipoOffertaImmobileRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Preventiv__Codic__117F9D94")),TipoOffertaImmobileRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Preventiv__Codic__117F9D94"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property AgentiRow() As AgentiRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Preventiv__IdAge__1B0907CE")),AgentiRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Preventiv__IdAge__1B0907CE"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ClientiRow() As ClientiRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Preventiv__IdCli__1920BF5C")),ClientiRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Preventiv__IdCli__1920BF5C"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ImmobiliRow() As ImmobiliRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK__Preventivi")),ImmobiliRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK__Preventivi"))
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsAppuntamentoNull() As Boolean
            Return Me.IsNull(Me.tablePreventivi.AppuntamentoColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetAppuntamentoNull()
            Me(Me.tablePreventivi.AppuntamentoColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsPreventivoDocNull() As Boolean
            Return Me.IsNull(Me.tablePreventivi.PreventivoDocColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetPreventivoDocNull()
            Me(Me.tablePreventivi.PreventivoDocColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCodiceTipoOffertaImmobileNull() As Boolean
            Return Me.IsNull(Me.tablePreventivi.CodiceTipoOffertaImmobileColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCodiceTipoOffertaImmobileNull()
            Me(Me.tablePreventivi.CodiceTipoOffertaImmobileColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsSysTimestampNull() As Boolean
            Return Me.IsNull(Me.tablePreventivi.SysTimestampColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetSysTimestampNull()
            Me(Me.tablePreventivi.SysTimestampColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsAgenteNull() As Boolean
            Return Me.IsNull(Me.tablePreventivi.AgenteColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetAgenteNull()
            Me(Me.tablePreventivi.AgenteColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsNomeNull() As Boolean
            Return Me.IsNull(Me.tablePreventivi.NomeColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetNomeNull()
            Me(Me.tablePreventivi.NomeColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsCognomeNull() As Boolean
            Return Me.IsNull(Me.tablePreventivi.CognomeColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetCognomeNull()
            Me(Me.tablePreventivi.CognomeColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsDescrizioneNull() As Boolean
            Return Me.IsNull(Me.tablePreventivi.DescrizioneColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetDescrizioneNull()
            Me(Me.tablePreventivi.DescrizioneColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetOfferteRows() As OfferteRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Offerte__IdPreve__182C9B23")),OfferteRow())
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Partial Public Class TipoImmobileRow
        Inherits System.Data.DataRow
        
        Private tableTipoImmobile As TipoImmobileDataTable
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableTipoImmobile = CType(Me.Table,TipoImmobileDataTable)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CodiceTipoImmobile() As String
            Get
                Return CType(Me(Me.tableTipoImmobile.CodiceTipoImmobileColumn),String)
            End Get
            Set
                Me(Me.tableTipoImmobile.CodiceTipoImmobileColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Descrizione() As String
            Get
                Try 
                    Return CType(Me(Me.tableTipoImmobile.DescrizioneColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Descrizione' in table 'TipoImmobile' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableTipoImmobile.DescrizioneColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property SysTimestamp() As Byte()
            Get
                Try 
                    Return CType(Me(Me.tableTipoImmobile.SysTimestampColumn),Byte())
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'SysTimestamp' in table 'TipoImmobile' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableTipoImmobile.SysTimestampColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsDescrizioneNull() As Boolean
            Return Me.IsNull(Me.tableTipoImmobile.DescrizioneColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetDescrizioneNull()
            Me(Me.tableTipoImmobile.DescrizioneColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsSysTimestampNull() As Boolean
            Return Me.IsNull(Me.tableTipoImmobile.SysTimestampColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetSysTimestampNull()
            Me(Me.tableTipoImmobile.SysTimestampColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetImmobiliRows() As ImmobiliRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Immobili__Codice__15502E78")),ImmobiliRow())
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Partial Public Class TipoOffertaImmobileRow
        Inherits System.Data.DataRow
        
        Private tableTipoOffertaImmobile As TipoOffertaImmobileDataTable
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableTipoOffertaImmobile = CType(Me.Table,TipoOffertaImmobileDataTable)
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property CodiceTipoOffertaImmobile() As String
            Get
                Return CType(Me(Me.tableTipoOffertaImmobile.CodiceTipoOffertaImmobileColumn),String)
            End Get
            Set
                Me(Me.tableTipoOffertaImmobile.CodiceTipoOffertaImmobileColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property Descrizione() As String
            Get
                Try 
                    Return CType(Me(Me.tableTipoOffertaImmobile.DescrizioneColumn),String)
                Catch e As System.InvalidCastException
                    Throw New System.Data.StrongTypingException("The value for column 'Descrizione' in table 'TipoOffertaImmobile' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableTipoOffertaImmobile.DescrizioneColumn) = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function IsDescrizioneNull() As Boolean
            Return Me.IsNull(Me.tableTipoOffertaImmobile.DescrizioneColumn)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub SetDescrizioneNull()
            Me(Me.tableTipoOffertaImmobile.DescrizioneColumn) = System.Convert.DBNull
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetContrattiRows() As ContrattiRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Contratti__Codic__1367E606")),ContrattiRow())
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetOfferteRows() As OfferteRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Offerte__CodiceT__173876EA")),OfferteRow())
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Function GetPreventiviRows() As PreventiviRow()
            Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK__Preventiv__Codic__117F9D94")),PreventiviRow())
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Public Class AgentiRowChangeEvent
        Inherits System.EventArgs
        
        Private eventRow As AgentiRow
        
        Private eventAction As System.Data.DataRowAction
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New(ByVal row As AgentiRow, ByVal action As System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Row() As AgentiRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Action() As System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Public Class AgenzieRowChangeEvent
        Inherits System.EventArgs
        
        Private eventRow As AgenzieRow
        
        Private eventAction As System.Data.DataRowAction
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New(ByVal row As AgenzieRow, ByVal action As System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Row() As AgenzieRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Action() As System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Public Class ClientiRowChangeEvent
        Inherits System.EventArgs
        
        Private eventRow As ClientiRow
        
        Private eventAction As System.Data.DataRowAction
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New(ByVal row As ClientiRow, ByVal action As System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Row() As ClientiRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Action() As System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Public Class ContrattiRowChangeEvent
        Inherits System.EventArgs
        
        Private eventRow As ContrattiRow
        
        Private eventAction As System.Data.DataRowAction
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New(ByVal row As ContrattiRow, ByVal action As System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Row() As ContrattiRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Action() As System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Public Class ImmobiliRowChangeEvent
        Inherits System.EventArgs
        
        Private eventRow As ImmobiliRow
        
        Private eventAction As System.Data.DataRowAction
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New(ByVal row As ImmobiliRow, ByVal action As System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Row() As ImmobiliRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Action() As System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Public Class OfferteRowChangeEvent
        Inherits System.EventArgs
        
        Private eventRow As OfferteRow
        
        Private eventAction As System.Data.DataRowAction
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New(ByVal row As OfferteRow, ByVal action As System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Row() As OfferteRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Action() As System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Public Class PreventiviRowChangeEvent
        Inherits System.EventArgs
        
        Private eventRow As PreventiviRow
        
        Private eventAction As System.Data.DataRowAction
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New(ByVal row As PreventiviRow, ByVal action As System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Row() As PreventiviRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Action() As System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Public Class TipoImmobileRowChangeEvent
        Inherits System.EventArgs
        
        Private eventRow As TipoImmobileRow
        
        Private eventAction As System.Data.DataRowAction
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New(ByVal row As TipoImmobileRow, ByVal action As System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Row() As TipoImmobileRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Action() As System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")>  _
    Public Class TipoOffertaImmobileRowChangeEvent
        Inherits System.EventArgs
        
        Private eventRow As TipoOffertaImmobileRow
        
        Private eventAction As System.Data.DataRowAction
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New(ByVal row As TipoOffertaImmobileRow, ByVal action As System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Row() As TipoOffertaImmobileRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public ReadOnly Property Action() As System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
End Class

Namespace SmartEstateDataSetTableAdapters
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.ComponentModel.ToolboxItem(true),  _
     System.ComponentModel.DataObjectAttribute(true),  _
     System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class AgentiTableAdapter
        Inherits System.ComponentModel.Component
        
        Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As System.Data.SqlClient.SqlConnection
        
        Private _commandCollection() As System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private ReadOnly Property Adapter() As System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Property Connection() As System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected ReadOnly Property CommandCollection() As System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitAdapter()
            Me._adapter = New System.Data.SqlClient.SqlDataAdapter
            Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Agenti"
            tableMapping.ColumnMappings.Add("IdAgente", "IdAgente")
            tableMapping.ColumnMappings.Add("Indirizzo", "Indirizzo")
            tableMapping.ColumnMappings.Add("CAP", "CAP")
            tableMapping.ColumnMappings.Add("Citta", "Citta")
            tableMapping.ColumnMappings.Add("IdAgenzia", "IdAgenzia")
            tableMapping.ColumnMappings.Add("TelefonoNumero", "TelefonoNumero")
            tableMapping.ColumnMappings.Add("Nome", "Nome")
            tableMapping.ColumnMappings.Add("TelefonoPrefisso", "TelefonoPrefisso")
            tableMapping.ColumnMappings.Add("Cognome", "Cognome")
            tableMapping.ColumnMappings.Add("Email", "Email")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Agenti] WHERE (([IdAgente] = @Original_IdAgente) AND ((@IsNull"& _ 
                "_Indirizzo = 1 AND [Indirizzo] IS NULL) OR ([Indirizzo] = @Original_Indirizzo)) "& _ 
                "AND ([CAP] = @Original_CAP) AND ((@IsNull_Citta = 1 AND [Citta] IS NULL) OR ([Ci"& _ 
                "tta] = @Original_Citta)) AND ((@IsNull_IdAgenzia = 1 AND [IdAgenzia] IS NULL) OR"& _ 
                " ([IdAgenzia] = @Original_IdAgenzia)) AND ((@IsNull_TelefonoNumero = 1 AND [Tele"& _ 
                "fonoNumero] IS NULL) OR ([TelefonoNumero] = @Original_TelefonoNumero)) AND ((@Is"& _ 
                "Null_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Te"& _ 
                "lefonoPrefisso = 1 AND [TelefonoPrefisso] IS NULL) OR ([TelefonoPrefisso] = @Ori"& _ 
                "ginal_TelefonoPrefisso)) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([C"& _ 
                "ognome] = @Original_Cognome)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR (["& _ 
                "Email] = @Original_Email)))"
            Me._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdAgente", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgente", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Indirizzo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CAP", System.Data.SqlDbType.[Char], 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Citta", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoNumero", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Nome", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Nome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoPrefisso", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Cognome", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Cognome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Email", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Email", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Agenti] ([Indirizzo], [CAP], [Citta], [IdAgenzia], [TelefonoNu"& _ 
                "mero], [Nome], [TelefonoPrefisso], [Cognome], [Email]) VALUES (@Indirizzo, @CAP,"& _ 
                " @Citta, @IdAgenzia, @TelefonoNumero, @Nome, @TelefonoPrefisso, @Cognome, @Email"& _ 
                ");"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdAgente, Indirizzo, CAP, Citta, IdAgenzia, TelefonoNumero, Nome, Tel"& _ 
                "efonoPrefisso, Cognome, Email FROM Agenti WHERE (IdAgente = SCOPE_IDENTITY())"
            Me._adapter.InsertCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CAP", System.Data.SqlDbType.[Char], 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Nome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Cognome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Email", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Agenti] SET [Indirizzo] = @Indirizzo, [CAP] = @CAP, [Citta] = @Citt"& _ 
                "a, [IdAgenzia] = @IdAgenzia, [TelefonoNumero] = @TelefonoNumero, [Nome] = @Nome,"& _ 
                " [TelefonoPrefisso] = @TelefonoPrefisso, [Cognome] = @Cognome, [Email] = @Email "& _ 
                "WHERE (([IdAgente] = @Original_IdAgente) AND ((@IsNull_Indirizzo = 1 AND [Indiri"& _ 
                "zzo] IS NULL) OR ([Indirizzo] = @Original_Indirizzo)) AND ([CAP] = @Original_CAP"& _ 
                ") AND ((@IsNull_Citta = 1 AND [Citta] IS NULL) OR ([Citta] = @Original_Citta)) A"& _ 
                "ND ((@IsNull_IdAgenzia = 1 AND [IdAgenzia] IS NULL) OR ([IdAgenzia] = @Original_"& _ 
                "IdAgenzia)) AND ((@IsNull_TelefonoNumero = 1 AND [TelefonoNumero] IS NULL) OR (["& _ 
                "TelefonoNumero] = @Original_TelefonoNumero)) AND ((@IsNull_Nome = 1 AND [Nome] I"& _ 
                "S NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_TelefonoPrefisso = 1 AND [Te"& _ 
                "lefonoPrefisso] IS NULL) OR ([TelefonoPrefisso] = @Original_TelefonoPrefisso)) A"& _ 
                "ND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognom"& _ 
                "e)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email))"& _ 
                ");"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdAgente, Indirizzo, CAP, Citta, IdAgenzia, TelefonoNumero, Nome, Tel"& _ 
                "efonoPrefisso, Cognome, Email FROM Agenti WHERE (IdAgente = @IdAgente)"
            Me._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CAP", System.Data.SqlDbType.[Char], 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Nome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Cognome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Email", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdAgente", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgente", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Indirizzo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CAP", System.Data.SqlDbType.[Char], 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Citta", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoNumero", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Nome", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Nome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoPrefisso", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Cognome", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Cognome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Email", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Email", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdAgente", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, 0, 0, "IdAgente", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitConnection()
            Me._connection = New System.Data.SqlClient.SqlConnection
            Me._connection.ConnectionString = Global.SmartEstate.My.MySettings.Default.SmartEstateConnectionString
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT IdAgente, Indirizzo, CAP, Citta, IdAgenzia, TelefonoNumero, Nome, Telefono"& _ 
                "Prefisso, Cognome, Email FROM dbo.Agenti"
            Me._commandCollection(0).CommandType = System.Data.CommandType.Text
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As SmartEstateDataSet.AgentiDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As SmartEstateDataSet.AgentiDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As SmartEstateDataSet.AgentiDataTable = New SmartEstateDataSet.AgentiDataTable
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As SmartEstateDataSet.AgentiDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As SmartEstateDataSet) As Integer
            Return Me.Adapter.Update(dataSet, "Agenti")
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New System.Data.DataRow() {dataRow})
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_IdAgente As Integer, ByVal Original_Indirizzo As String, ByVal Original_CAP As String, ByVal Original_Citta As String, ByVal Original_IdAgenzia As System.Nullable(Of Integer), ByVal Original_TelefonoNumero As String, ByVal Original_Nome As String, ByVal Original_TelefonoPrefisso As String, ByVal Original_Cognome As String, ByVal Original_Email As String) As Integer
            Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_IdAgente,Integer)
            If (Original_Indirizzo Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Indirizzo,String)
            End If
            If (Original_CAP Is Nothing) Then
                Throw New System.ArgumentNullException("Original_CAP")
            Else
                Me.Adapter.DeleteCommand.Parameters(3).Value = CType(Original_CAP,String)
            End If
            If (Original_Citta Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(4).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(4).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(5).Value = CType(Original_Citta,String)
            End If
            If (Original_IdAgenzia.HasValue = true) Then
                Me.Adapter.DeleteCommand.Parameters(6).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(7).Value = CType(Original_IdAgenzia.Value,Integer)
            Else
                Me.Adapter.DeleteCommand.Parameters(6).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(7).Value = System.DBNull.Value
            End If
            If (Original_TelefonoNumero Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(8).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(9).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(8).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(9).Value = CType(Original_TelefonoNumero,String)
            End If
            If (Original_Nome Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(10).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(11).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(10).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(11).Value = CType(Original_Nome,String)
            End If
            If (Original_TelefonoPrefisso Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(12).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(13).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(12).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(13).Value = CType(Original_TelefonoPrefisso,String)
            End If
            If (Original_Cognome Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(14).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(15).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(14).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(15).Value = CType(Original_Cognome,String)
            End If
            If (Original_Email Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(16).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(17).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(16).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(17).Value = CType(Original_Email,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert(ByVal Indirizzo As String, ByVal CAP As String, ByVal Citta As String, ByVal IdAgenzia As System.Nullable(Of Integer), ByVal TelefonoNumero As String, ByVal Nome As String, ByVal TelefonoPrefisso As String, ByVal Cognome As String, ByVal Email As String) As Integer
            If (Indirizzo Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(0).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(0).Value = CType(Indirizzo,String)
            End If
            If (CAP Is Nothing) Then
                Throw New System.ArgumentNullException("CAP")
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(CAP,String)
            End If
            If (Citta Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(2).Value = CType(Citta,String)
            End If
            If (IdAgenzia.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(3).Value = CType(IdAgenzia.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(3).Value = System.DBNull.Value
            End If
            If (TelefonoNumero Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(4).Value = CType(TelefonoNumero,String)
            End If
            If (Nome Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(5).Value = CType(Nome,String)
            End If
            If (TelefonoPrefisso Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(6).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(6).Value = CType(TelefonoPrefisso,String)
            End If
            If (Cognome Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(7).Value = CType(Cognome,String)
            End If
            If (Email Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(8).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(8).Value = CType(Email,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal Indirizzo As String,  _
                    ByVal CAP As String,  _
                    ByVal Citta As String,  _
                    ByVal IdAgenzia As System.Nullable(Of Integer),  _
                    ByVal TelefonoNumero As String,  _
                    ByVal Nome As String,  _
                    ByVal TelefonoPrefisso As String,  _
                    ByVal Cognome As String,  _
                    ByVal Email As String,  _
                    ByVal Original_IdAgente As Integer,  _
                    ByVal Original_Indirizzo As String,  _
                    ByVal Original_CAP As String,  _
                    ByVal Original_Citta As String,  _
                    ByVal Original_IdAgenzia As System.Nullable(Of Integer),  _
                    ByVal Original_TelefonoNumero As String,  _
                    ByVal Original_Nome As String,  _
                    ByVal Original_TelefonoPrefisso As String,  _
                    ByVal Original_Cognome As String,  _
                    ByVal Original_Email As String,  _
                    ByVal IdAgente As Integer) As Integer
            If (Indirizzo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(0).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(0).Value = CType(Indirizzo,String)
            End If
            If (CAP Is Nothing) Then
                Throw New System.ArgumentNullException("CAP")
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(CAP,String)
            End If
            If (Citta Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Citta,String)
            End If
            If (IdAgenzia.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(3).Value = CType(IdAgenzia.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(3).Value = System.DBNull.Value
            End If
            If (TelefonoNumero Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(4).Value = CType(TelefonoNumero,String)
            End If
            If (Nome Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(5).Value = CType(Nome,String)
            End If
            If (TelefonoPrefisso Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(6).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(6).Value = CType(TelefonoPrefisso,String)
            End If
            If (Cognome Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Cognome,String)
            End If
            If (Email Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(8).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(8).Value = CType(Email,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Original_IdAgente,Integer)
            If (Original_Indirizzo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(10).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(11).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(10).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(11).Value = CType(Original_Indirizzo,String)
            End If
            If (Original_CAP Is Nothing) Then
                Throw New System.ArgumentNullException("Original_CAP")
            Else
                Me.Adapter.UpdateCommand.Parameters(12).Value = CType(Original_CAP,String)
            End If
            If (Original_Citta Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(13).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(14).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(13).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(14).Value = CType(Original_Citta,String)
            End If
            If (Original_IdAgenzia.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(15).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(Original_IdAgenzia.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(15).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(16).Value = System.DBNull.Value
            End If
            If (Original_TelefonoNumero Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(17).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(18).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(17).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(Original_TelefonoNumero,String)
            End If
            If (Original_Nome Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(19).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(20).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(19).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(20).Value = CType(Original_Nome,String)
            End If
            If (Original_TelefonoPrefisso Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(21).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(22).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(21).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(22).Value = CType(Original_TelefonoPrefisso,String)
            End If
            If (Original_Cognome Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(23).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(24).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(23).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(24).Value = CType(Original_Cognome,String)
            End If
            If (Original_Email Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(25).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(26).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(25).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(26).Value = CType(Original_Email,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(27).Value = CType(IdAgente,Integer)
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.ComponentModel.ToolboxItem(true),  _
     System.ComponentModel.DataObjectAttribute(true),  _
     System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class AgenzieTableAdapter
        Inherits System.ComponentModel.Component
        
        Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As System.Data.SqlClient.SqlConnection
        
        Private _commandCollection() As System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private ReadOnly Property Adapter() As System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Property Connection() As System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected ReadOnly Property CommandCollection() As System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitAdapter()
            Me._adapter = New System.Data.SqlClient.SqlDataAdapter
            Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Agenzie"
            tableMapping.ColumnMappings.Add("IdAgenzia", "IdAgenzia")
            tableMapping.ColumnMappings.Add("RagioneSociale", "RagioneSociale")
            tableMapping.ColumnMappings.Add("Indirizzo", "Indirizzo")
            tableMapping.ColumnMappings.Add("CAP", "CAP")
            tableMapping.ColumnMappings.Add("Citta", "Citta")
            tableMapping.ColumnMappings.Add("PartitaIVA", "PartitaIVA")
            tableMapping.ColumnMappings.Add("TelefonoNumero", "TelefonoNumero")
            tableMapping.ColumnMappings.Add("TelefonoPrefisso", "TelefonoPrefisso")
            tableMapping.ColumnMappings.Add("FaxPrefisso", "FaxPrefisso")
            tableMapping.ColumnMappings.Add("FaxNumero", "FaxNumero")
            tableMapping.ColumnMappings.Add("IndirizzoWeb", "IndirizzoWeb")
            tableMapping.ColumnMappings.Add("Email", "Email")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Agenzie] WHERE (([IdAgenzia] = @Original_IdAgenzia) AND ((@IsN"& _ 
                "ull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Ori"& _ 
                "ginal_RagioneSociale)) AND ((@IsNull_Indirizzo = 1 AND [Indirizzo] IS NULL) OR ("& _ 
                "[Indirizzo] = @Original_Indirizzo)) AND ((@IsNull_CAP = 1 AND [CAP] IS NULL) OR "& _ 
                "([CAP] = @Original_CAP)) AND ((@IsNull_Citta = 1 AND [Citta] IS NULL) OR ([Citta"& _ 
                "] = @Original_Citta)) AND ((@IsNull_PartitaIVA = 1 AND [PartitaIVA] IS NULL) OR "& _ 
                "([PartitaIVA] = @Original_PartitaIVA)) AND ((@IsNull_TelefonoNumero = 1 AND [Tel"& _ 
                "efonoNumero] IS NULL) OR ([TelefonoNumero] = @Original_TelefonoNumero)) AND ((@I"& _ 
                "sNull_TelefonoPrefisso = 1 AND [TelefonoPrefisso] IS NULL) OR ([TelefonoPrefisso"& _ 
                "] = @Original_TelefonoPrefisso)) AND ((@IsNull_FaxPrefisso = 1 AND [FaxPrefisso]"& _ 
                " IS NULL) OR ([FaxPrefisso] = @Original_FaxPrefisso)) AND ((@IsNull_FaxNumero = "& _ 
                "1 AND [FaxNumero] IS NULL) OR ([FaxNumero] = @Original_FaxNumero)) AND ((@IsNull"& _ 
                "_IndirizzoWeb = 1 AND [IndirizzoWeb] IS NULL) OR ([IndirizzoWeb] = @Original_Ind"& _ 
                "irizzoWeb)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original"& _ 
                "_Email)))"
            Me._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_RagioneSociale", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_RagioneSociale", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Indirizzo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_CAP", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CAP", System.Data.SqlDbType.[Char], 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Citta", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_PartitaIVA", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "PartitaIVA", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_PartitaIVA", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "PartitaIVA", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoNumero", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoPrefisso", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_FaxPrefisso", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxPrefisso", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_FaxPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxPrefisso", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_FaxNumero", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxNumero", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_FaxNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxNumero", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_IndirizzoWeb", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IndirizzoWeb", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IndirizzoWeb", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "IndirizzoWeb", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Email", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Email", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Agenzie] ([RagioneSociale], [Indirizzo], [CAP], [Citta], [Part"& _ 
                "itaIVA], [TelefonoNumero], [TelefonoPrefisso], [FaxPrefisso], [FaxNumero], [Indi"& _ 
                "rizzoWeb], [Email]) VALUES (@RagioneSociale, @Indirizzo, @CAP, @Citta, @PartitaI"& _ 
                "VA, @TelefonoNumero, @TelefonoPrefisso, @FaxPrefisso, @FaxNumero, @IndirizzoWeb,"& _ 
                " @Email);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdAgenzia, RagioneSociale, Indirizzo, CAP, Citta, PartitaIVA, "& _ 
                "TelefonoNumero, TelefonoPrefisso, FaxPrefisso, FaxNumero, IndirizzoWeb, Email FR"& _ 
                "OM Agenzie WHERE (IdAgenzia = SCOPE_IDENTITY())"
            Me._adapter.InsertCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@RagioneSociale", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CAP", System.Data.SqlDbType.[Char], 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@PartitaIVA", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "PartitaIVA", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@FaxPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxPrefisso", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@FaxNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxNumero", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IndirizzoWeb", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "IndirizzoWeb", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Email", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Agenzie] SET [RagioneSociale] = @RagioneSociale, [Indirizzo] = @Ind"& _ 
                "irizzo, [CAP] = @CAP, [Citta] = @Citta, [PartitaIVA] = @PartitaIVA, [TelefonoNum"& _ 
                "ero] = @TelefonoNumero, [TelefonoPrefisso] = @TelefonoPrefisso, [FaxPrefisso] = "& _ 
                "@FaxPrefisso, [FaxNumero] = @FaxNumero, [IndirizzoWeb] = @IndirizzoWeb, [Email] "& _ 
                "= @Email WHERE (([IdAgenzia] = @Original_IdAgenzia) AND ((@IsNull_RagioneSociale"& _ 
                " = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Original_RagioneSocia"& _ 
                "le)) AND ((@IsNull_Indirizzo = 1 AND [Indirizzo] IS NULL) OR ([Indirizzo] = @Ori"& _ 
                "ginal_Indirizzo)) AND ((@IsNull_CAP = 1 AND [CAP] IS NULL) OR ([CAP] = @Original"& _ 
                "_CAP)) AND ((@IsNull_Citta = 1 AND [Citta] IS NULL) OR ([Citta] = @Original_Citt"& _ 
                "a)) AND ((@IsNull_PartitaIVA = 1 AND [PartitaIVA] IS NULL) OR ([PartitaIVA] = @O"& _ 
                "riginal_PartitaIVA)) AND ((@IsNull_TelefonoNumero = 1 AND [TelefonoNumero] IS NU"& _ 
                "LL) OR ([TelefonoNumero] = @Original_TelefonoNumero)) AND ((@IsNull_TelefonoPref"& _ 
                "isso = 1 AND [TelefonoPrefisso] IS NULL) OR ([TelefonoPrefisso] = @Original_Tele"& _ 
                "fonoPrefisso)) AND ((@IsNull_FaxPrefisso = 1 AND [FaxPrefisso] IS NULL) OR ([Fax"& _ 
                "Prefisso] = @Original_FaxPrefisso)) AND ((@IsNull_FaxNumero = 1 AND [FaxNumero] "& _ 
                "IS NULL) OR ([FaxNumero] = @Original_FaxNumero)) AND ((@IsNull_IndirizzoWeb = 1 "& _ 
                "AND [IndirizzoWeb] IS NULL) OR ([IndirizzoWeb] = @Original_IndirizzoWeb)) AND (("& _ 
                "@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT"& _ 
                " IdAgenzia, RagioneSociale, Indirizzo, CAP, Citta, PartitaIVA, TelefonoNumero, T"& _ 
                "elefonoPrefisso, FaxPrefisso, FaxNumero, IndirizzoWeb, Email FROM Agenzie WHERE "& _ 
                "(IdAgenzia = @IdAgenzia)"
            Me._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@RagioneSociale", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CAP", System.Data.SqlDbType.[Char], 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@PartitaIVA", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "PartitaIVA", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@FaxPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxPrefisso", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@FaxNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxNumero", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IndirizzoWeb", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "IndirizzoWeb", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Email", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_RagioneSociale", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_RagioneSociale", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Indirizzo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_CAP", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CAP", System.Data.SqlDbType.[Char], 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Citta", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_PartitaIVA", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "PartitaIVA", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_PartitaIVA", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "PartitaIVA", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoNumero", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoPrefisso", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_FaxPrefisso", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxPrefisso", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_FaxPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxPrefisso", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_FaxNumero", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxNumero", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_FaxNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "FaxNumero", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_IndirizzoWeb", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IndirizzoWeb", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IndirizzoWeb", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "IndirizzoWeb", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Email", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Email", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Email", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdAgenzia", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitConnection()
            Me._connection = New System.Data.SqlClient.SqlConnection
            Me._connection.ConnectionString = Global.SmartEstate.My.MySettings.Default.SmartEstateConnectionString
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT IdAgenzia, RagioneSociale, Indirizzo, CAP, Citta, PartitaIVA, TelefonoNume"& _ 
                "ro, TelefonoPrefisso, FaxPrefisso, FaxNumero, IndirizzoWeb, Email FROM dbo.Agenz"& _ 
                "ie"
            Me._commandCollection(0).CommandType = System.Data.CommandType.Text
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As SmartEstateDataSet.AgenzieDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As SmartEstateDataSet.AgenzieDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As SmartEstateDataSet.AgenzieDataTable = New SmartEstateDataSet.AgenzieDataTable
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As SmartEstateDataSet.AgenzieDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As SmartEstateDataSet) As Integer
            Return Me.Adapter.Update(dataSet, "Agenzie")
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New System.Data.DataRow() {dataRow})
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_IdAgenzia As Integer, ByVal Original_RagioneSociale As String, ByVal Original_Indirizzo As String, ByVal Original_CAP As String, ByVal Original_Citta As String, ByVal Original_PartitaIVA As String, ByVal Original_TelefonoNumero As String, ByVal Original_TelefonoPrefisso As String, ByVal Original_FaxPrefisso As String, ByVal Original_FaxNumero As String, ByVal Original_IndirizzoWeb As String, ByVal Original_Email As String) As Integer
            Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_IdAgenzia,Integer)
            If (Original_RagioneSociale Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_RagioneSociale,String)
            End If
            If (Original_Indirizzo Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_Indirizzo,String)
            End If
            If (Original_CAP Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(5).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(6).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(5).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(6).Value = CType(Original_CAP,String)
            End If
            If (Original_Citta Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(7).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(8).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(7).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(8).Value = CType(Original_Citta,String)
            End If
            If (Original_PartitaIVA Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(9).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(10).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(9).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(10).Value = CType(Original_PartitaIVA,String)
            End If
            If (Original_TelefonoNumero Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(11).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(12).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(11).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(12).Value = CType(Original_TelefonoNumero,String)
            End If
            If (Original_TelefonoPrefisso Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(13).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(14).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(13).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(14).Value = CType(Original_TelefonoPrefisso,String)
            End If
            If (Original_FaxPrefisso Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(15).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(16).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(15).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(16).Value = CType(Original_FaxPrefisso,String)
            End If
            If (Original_FaxNumero Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(17).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(18).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(17).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(18).Value = CType(Original_FaxNumero,String)
            End If
            If (Original_IndirizzoWeb Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(19).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(20).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(19).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(20).Value = CType(Original_IndirizzoWeb,String)
            End If
            If (Original_Email Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(21).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(22).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(21).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(22).Value = CType(Original_Email,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert(ByVal RagioneSociale As String, ByVal Indirizzo As String, ByVal CAP As String, ByVal Citta As String, ByVal PartitaIVA As String, ByVal TelefonoNumero As String, ByVal TelefonoPrefisso As String, ByVal FaxPrefisso As String, ByVal FaxNumero As String, ByVal IndirizzoWeb As String, ByVal Email As String) As Integer
            If (RagioneSociale Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(0).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(0).Value = CType(RagioneSociale,String)
            End If
            If (Indirizzo Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(Indirizzo,String)
            End If
            If (CAP Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(2).Value = CType(CAP,String)
            End If
            If (Citta Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(3).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(3).Value = CType(Citta,String)
            End If
            If (PartitaIVA Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(4).Value = CType(PartitaIVA,String)
            End If
            If (TelefonoNumero Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(5).Value = CType(TelefonoNumero,String)
            End If
            If (TelefonoPrefisso Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(6).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(6).Value = CType(TelefonoPrefisso,String)
            End If
            If (FaxPrefisso Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(7).Value = CType(FaxPrefisso,String)
            End If
            If (FaxNumero Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(8).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(8).Value = CType(FaxNumero,String)
            End If
            If (IndirizzoWeb Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(9).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(9).Value = CType(IndirizzoWeb,String)
            End If
            If (Email Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(10).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(10).Value = CType(Email,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal RagioneSociale As String,  _
                    ByVal Indirizzo As String,  _
                    ByVal CAP As String,  _
                    ByVal Citta As String,  _
                    ByVal PartitaIVA As String,  _
                    ByVal TelefonoNumero As String,  _
                    ByVal TelefonoPrefisso As String,  _
                    ByVal FaxPrefisso As String,  _
                    ByVal FaxNumero As String,  _
                    ByVal IndirizzoWeb As String,  _
                    ByVal Email As String,  _
                    ByVal Original_IdAgenzia As Integer,  _
                    ByVal Original_RagioneSociale As String,  _
                    ByVal Original_Indirizzo As String,  _
                    ByVal Original_CAP As String,  _
                    ByVal Original_Citta As String,  _
                    ByVal Original_PartitaIVA As String,  _
                    ByVal Original_TelefonoNumero As String,  _
                    ByVal Original_TelefonoPrefisso As String,  _
                    ByVal Original_FaxPrefisso As String,  _
                    ByVal Original_FaxNumero As String,  _
                    ByVal Original_IndirizzoWeb As String,  _
                    ByVal Original_Email As String,  _
                    ByVal IdAgenzia As Integer) As Integer
            If (RagioneSociale Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(0).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(0).Value = CType(RagioneSociale,String)
            End If
            If (Indirizzo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Indirizzo,String)
            End If
            If (CAP Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(CAP,String)
            End If
            If (Citta Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(3).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Citta,String)
            End If
            If (PartitaIVA Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(4).Value = CType(PartitaIVA,String)
            End If
            If (TelefonoNumero Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(5).Value = CType(TelefonoNumero,String)
            End If
            If (TelefonoPrefisso Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(6).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(6).Value = CType(TelefonoPrefisso,String)
            End If
            If (FaxPrefisso Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(FaxPrefisso,String)
            End If
            If (FaxNumero Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(8).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(8).Value = CType(FaxNumero,String)
            End If
            If (IndirizzoWeb Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(9).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(9).Value = CType(IndirizzoWeb,String)
            End If
            If (Email Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(10).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(10).Value = CType(Email,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(11).Value = CType(Original_IdAgenzia,Integer)
            If (Original_RagioneSociale Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(12).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(13).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(12).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(13).Value = CType(Original_RagioneSociale,String)
            End If
            If (Original_Indirizzo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(14).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(15).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(14).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(15).Value = CType(Original_Indirizzo,String)
            End If
            If (Original_CAP Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(17).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(17).Value = CType(Original_CAP,String)
            End If
            If (Original_Citta Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(19).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(19).Value = CType(Original_Citta,String)
            End If
            If (Original_PartitaIVA Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(20).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(21).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(20).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(21).Value = CType(Original_PartitaIVA,String)
            End If
            If (Original_TelefonoNumero Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(22).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(23).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(22).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(23).Value = CType(Original_TelefonoNumero,String)
            End If
            If (Original_TelefonoPrefisso Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(24).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(25).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(24).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(25).Value = CType(Original_TelefonoPrefisso,String)
            End If
            If (Original_FaxPrefisso Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(26).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(27).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(26).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(27).Value = CType(Original_FaxPrefisso,String)
            End If
            If (Original_FaxNumero Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(28).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(29).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(28).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(29).Value = CType(Original_FaxNumero,String)
            End If
            If (Original_IndirizzoWeb Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(30).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(31).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(30).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(31).Value = CType(Original_IndirizzoWeb,String)
            End If
            If (Original_Email Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(32).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(33).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(32).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(33).Value = CType(Original_Email,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(34).Value = CType(IdAgenzia,Integer)
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.ComponentModel.ToolboxItem(true),  _
     System.ComponentModel.DataObjectAttribute(true),  _
     System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class ClientiTableAdapter
        Inherits System.ComponentModel.Component
        
        Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As System.Data.SqlClient.SqlConnection
        
        Private _commandCollection() As System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private ReadOnly Property Adapter() As System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Property Connection() As System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected ReadOnly Property CommandCollection() As System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitAdapter()
            Me._adapter = New System.Data.SqlClient.SqlDataAdapter
            Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Clienti"
            tableMapping.ColumnMappings.Add("IdCliente", "IdCliente")
            tableMapping.ColumnMappings.Add("IdAgenzia", "IdAgenzia")
            tableMapping.ColumnMappings.Add("Nome", "Nome")
            tableMapping.ColumnMappings.Add("Cognome", "Cognome")
            tableMapping.ColumnMappings.Add("Indirizzo", "Indirizzo")
            tableMapping.ColumnMappings.Add("CAP", "CAP")
            tableMapping.ColumnMappings.Add("Citta", "Citta")
            tableMapping.ColumnMappings.Add("TelefonoPrefisso", "TelefonoPrefisso")
            tableMapping.ColumnMappings.Add("TelefonoNumero", "TelefonoNumero")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Clienti] WHERE (([IdCliente] = @Original_IdCliente) AND ([IdAg"& _ 
                "enzia] = @Original_IdAgenzia) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([No"& _ 
                "me] = @Original_Nome)) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cog"& _ 
                "nome] = @Original_Cognome)) AND ((@IsNull_Indirizzo = 1 AND [Indirizzo] IS NULL)"& _ 
                " OR ([Indirizzo] = @Original_Indirizzo)) AND ((@IsNull_CAP = 1 AND [CAP] IS NULL"& _ 
                ") OR ([CAP] = @Original_CAP)) AND ((@IsNull_Citta = 1 AND [Citta] IS NULL) OR (["& _ 
                "Citta] = @Original_Citta)) AND ((@IsNull_TelefonoPrefisso = 1 AND [TelefonoPrefi"& _ 
                "sso] IS NULL) OR ([TelefonoPrefisso] = @Original_TelefonoPrefisso)) AND ((@IsNul"& _ 
                "l_TelefonoNumero = 1 AND [TelefonoNumero] IS NULL) OR ([TelefonoNumero] = @Origi"& _ 
                "nal_TelefonoNumero)))"
            Me._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdCliente", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdCliente", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Nome", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Nome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Cognome", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Cognome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Indirizzo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_CAP", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CAP", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Citta", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoPrefisso", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoNumero", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Clienti] ([IdAgenzia], [Nome], [Cognome], [Indirizzo], [CAP], "& _ 
                "[Citta], [TelefonoPrefisso], [TelefonoNumero]) VALUES (@IdAgenzia, @Nome, @Cogno"& _ 
                "me, @Indirizzo, @CAP, @Citta, @TelefonoPrefisso, @TelefonoNumero);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdCli"& _ 
                "ente, IdAgenzia, Nome, Cognome, Indirizzo, CAP, Citta, TelefonoPrefisso, Telefon"& _ 
                "oNumero FROM Clienti WHERE (IdCliente = SCOPE_IDENTITY())"
            Me._adapter.InsertCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Nome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Cognome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CAP", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Clienti] SET [IdAgenzia] = @IdAgenzia, [Nome] = @Nome, [Cognome] = "& _ 
                "@Cognome, [Indirizzo] = @Indirizzo, [CAP] = @CAP, [Citta] = @Citta, [TelefonoPre"& _ 
                "fisso] = @TelefonoPrefisso, [TelefonoNumero] = @TelefonoNumero WHERE (([IdClient"& _ 
                "e] = @Original_IdCliente) AND ([IdAgenzia] = @Original_IdAgenzia) AND ((@IsNull_"& _ 
                "Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Cognome"& _ 
                " = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_In"& _ 
                "dirizzo = 1 AND [Indirizzo] IS NULL) OR ([Indirizzo] = @Original_Indirizzo)) AND"& _ 
                " ((@IsNull_CAP = 1 AND [CAP] IS NULL) OR ([CAP] = @Original_CAP)) AND ((@IsNull_"& _ 
                "Citta = 1 AND [Citta] IS NULL) OR ([Citta] = @Original_Citta)) AND ((@IsNull_Tel"& _ 
                "efonoPrefisso = 1 AND [TelefonoPrefisso] IS NULL) OR ([TelefonoPrefisso] = @Orig"& _ 
                "inal_TelefonoPrefisso)) AND ((@IsNull_TelefonoNumero = 1 AND [TelefonoNumero] IS"& _ 
                " NULL) OR ([TelefonoNumero] = @Original_TelefonoNumero)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdCliente, Id"& _ 
                "Agenzia, Nome, Cognome, Indirizzo, CAP, Citta, TelefonoPrefisso, TelefonoNumero "& _ 
                "FROM Clienti WHERE (IdCliente = @IdCliente)"
            Me._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Nome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Cognome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CAP", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdCliente", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdCliente", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Nome", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Nome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Nome", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Cognome", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Cognome", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Cognome", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Indirizzo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_CAP", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CAP", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Citta", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoPrefisso", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoPrefisso", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoPrefisso", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_TelefonoNumero", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_TelefonoNumero", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "TelefonoNumero", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdCliente", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, 0, 0, "IdCliente", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitConnection()
            Me._connection = New System.Data.SqlClient.SqlConnection
            Me._connection.ConnectionString = Global.SmartEstate.My.MySettings.Default.SmartEstateConnectionString
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT IdCliente, IdAgenzia, Nome, Cognome, Indirizzo, CAP, Citta, TelefonoPrefis"& _ 
                "so, TelefonoNumero FROM dbo.Clienti"
            Me._commandCollection(0).CommandType = System.Data.CommandType.Text
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As SmartEstateDataSet.ClientiDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As SmartEstateDataSet.ClientiDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As SmartEstateDataSet.ClientiDataTable = New SmartEstateDataSet.ClientiDataTable
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As SmartEstateDataSet.ClientiDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As SmartEstateDataSet) As Integer
            Return Me.Adapter.Update(dataSet, "Clienti")
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New System.Data.DataRow() {dataRow})
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_IdCliente As Integer, ByVal Original_IdAgenzia As Integer, ByVal Original_Nome As String, ByVal Original_Cognome As String, ByVal Original_Indirizzo As String, ByVal Original_CAP As String, ByVal Original_Citta As String, ByVal Original_TelefonoPrefisso As String, ByVal Original_TelefonoNumero As String) As Integer
            Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_IdCliente,Integer)
            Me.Adapter.DeleteCommand.Parameters(1).Value = CType(Original_IdAgenzia,Integer)
            If (Original_Nome Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(3).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(3).Value = CType(Original_Nome,String)
            End If
            If (Original_Cognome Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(4).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(4).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(5).Value = CType(Original_Cognome,String)
            End If
            If (Original_Indirizzo Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(6).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(6).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(7).Value = CType(Original_Indirizzo,String)
            End If
            If (Original_CAP Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(8).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(9).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(8).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(9).Value = CType(Original_CAP,String)
            End If
            If (Original_Citta Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(10).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(11).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(10).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(11).Value = CType(Original_Citta,String)
            End If
            If (Original_TelefonoPrefisso Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(12).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(13).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(12).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(13).Value = CType(Original_TelefonoPrefisso,String)
            End If
            If (Original_TelefonoNumero Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(14).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(15).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(14).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(15).Value = CType(Original_TelefonoNumero,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert(ByVal IdAgenzia As Integer, ByVal Nome As String, ByVal Cognome As String, ByVal Indirizzo As String, ByVal CAP As String, ByVal Citta As String, ByVal TelefonoPrefisso As String, ByVal TelefonoNumero As String) As Integer
            Me.Adapter.InsertCommand.Parameters(0).Value = CType(IdAgenzia,Integer)
            If (Nome Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(Nome,String)
            End If
            If (Cognome Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(2).Value = CType(Cognome,String)
            End If
            If (Indirizzo Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(3).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(3).Value = CType(Indirizzo,String)
            End If
            If (CAP Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(4).Value = CType(CAP,String)
            End If
            If (Citta Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(5).Value = CType(Citta,String)
            End If
            If (TelefonoPrefisso Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(6).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(6).Value = CType(TelefonoPrefisso,String)
            End If
            If (TelefonoNumero Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(7).Value = CType(TelefonoNumero,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal IdAgenzia As Integer,  _
                    ByVal Nome As String,  _
                    ByVal Cognome As String,  _
                    ByVal Indirizzo As String,  _
                    ByVal CAP As String,  _
                    ByVal Citta As String,  _
                    ByVal TelefonoPrefisso As String,  _
                    ByVal TelefonoNumero As String,  _
                    ByVal Original_IdCliente As Integer,  _
                    ByVal Original_IdAgenzia As Integer,  _
                    ByVal Original_Nome As String,  _
                    ByVal Original_Cognome As String,  _
                    ByVal Original_Indirizzo As String,  _
                    ByVal Original_CAP As String,  _
                    ByVal Original_Citta As String,  _
                    ByVal Original_TelefonoPrefisso As String,  _
                    ByVal Original_TelefonoNumero As String,  _
                    ByVal IdCliente As Integer) As Integer
            Me.Adapter.UpdateCommand.Parameters(0).Value = CType(IdAgenzia,Integer)
            If (Nome Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Nome,String)
            End If
            If (Cognome Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Cognome,String)
            End If
            If (Indirizzo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(3).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Indirizzo,String)
            End If
            If (CAP Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(4).Value = CType(CAP,String)
            End If
            If (Citta Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(5).Value = CType(Citta,String)
            End If
            If (TelefonoPrefisso Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(6).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(6).Value = CType(TelefonoPrefisso,String)
            End If
            If (TelefonoNumero Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(TelefonoNumero,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(8).Value = CType(Original_IdCliente,Integer)
            Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Original_IdAgenzia,Integer)
            If (Original_Nome Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(10).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(11).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(10).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(11).Value = CType(Original_Nome,String)
            End If
            If (Original_Cognome Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(12).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(13).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(12).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(13).Value = CType(Original_Cognome,String)
            End If
            If (Original_Indirizzo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(14).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(15).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(14).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(15).Value = CType(Original_Indirizzo,String)
            End If
            If (Original_CAP Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(17).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(17).Value = CType(Original_CAP,String)
            End If
            If (Original_Citta Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(19).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(19).Value = CType(Original_Citta,String)
            End If
            If (Original_TelefonoPrefisso Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(20).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(21).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(20).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(21).Value = CType(Original_TelefonoPrefisso,String)
            End If
            If (Original_TelefonoNumero Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(22).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(23).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(22).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(23).Value = CType(Original_TelefonoNumero,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(24).Value = CType(IdCliente,Integer)
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.ComponentModel.ToolboxItem(true),  _
     System.ComponentModel.DataObjectAttribute(true),  _
     System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class ContrattiTableAdapter
        Inherits System.ComponentModel.Component
        
        Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As System.Data.SqlClient.SqlConnection
        
        Private _commandCollection() As System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private ReadOnly Property Adapter() As System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Property Connection() As System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected ReadOnly Property CommandCollection() As System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitAdapter()
            Me._adapter = New System.Data.SqlClient.SqlDataAdapter
            Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Contratti"
            tableMapping.ColumnMappings.Add("IdContratto", "IdContratto")
            tableMapping.ColumnMappings.Add("IdTrattativa", "IdTrattativa")
            tableMapping.ColumnMappings.Add("CodiceTipoOffertaImmobile", "CodiceTipoOffertaImmobile")
            tableMapping.ColumnMappings.Add("ContrattoDoc", "ContrattoDoc")
            tableMapping.ColumnMappings.Add("DataContratto", "DataContratto")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Contratti] WHERE (([IdContratto] = @Original_IdContratto) AND "& _ 
                "([IdTrattativa] = @Original_IdTrattativa) AND ((@IsNull_CodiceTipoOffertaImmobil"& _ 
                "e = 1 AND [CodiceTipoOffertaImmobile] IS NULL) OR ([CodiceTipoOffertaImmobile] ="& _ 
                " @Original_CodiceTipoOffertaImmobile)) AND ((@IsNull_DataContratto = 1 AND [Data"& _ 
                "Contratto] IS NULL) OR ([DataContratto] = @Original_DataContratto)))"
            Me._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdContratto", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdContratto", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdTrattativa", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdTrattativa", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_CodiceTipoOffertaImmobile", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_DataContratto", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "DataContratto", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_DataContratto", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "DataContratto", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Contratti] ([IdTrattativa], [CodiceTipoOffertaImmobile], [Cont"& _ 
                "rattoDoc], [DataContratto]) VALUES (@IdTrattativa, @CodiceTipoOffertaImmobile, @"& _ 
                "ContrattoDoc, @DataContratto);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdContratto, IdTrattativa, CodiceTipoOffe"& _ 
                "rtaImmobile, ContrattoDoc, DataContratto FROM Contratti WHERE (IdContratto = SCO"& _ 
                "PE_IDENTITY())"
            Me._adapter.InsertCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdTrattativa", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdTrattativa", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@ContrattoDoc", System.Data.SqlDbType.Xml, 0, System.Data.ParameterDirection.Input, 0, 0, "ContrattoDoc", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@DataContratto", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "DataContratto", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Contratti] SET [IdTrattativa] = @IdTrattativa, [CodiceTipoOffertaIm"& _ 
                "mobile] = @CodiceTipoOffertaImmobile, [ContrattoDoc] = @ContrattoDoc, [DataContr"& _ 
                "atto] = @DataContratto WHERE (([IdContratto] = @Original_IdContratto) AND ([IdTr"& _ 
                "attativa] = @Original_IdTrattativa) AND ((@IsNull_CodiceTipoOffertaImmobile = 1 "& _ 
                "AND [CodiceTipoOffertaImmobile] IS NULL) OR ([CodiceTipoOffertaImmobile] = @Orig"& _ 
                "inal_CodiceTipoOffertaImmobile)) AND ((@IsNull_DataContratto = 1 AND [DataContra"& _ 
                "tto] IS NULL) OR ([DataContratto] = @Original_DataContratto)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdContra"& _ 
                "tto, IdTrattativa, CodiceTipoOffertaImmobile, ContrattoDoc, DataContratto FROM C"& _ 
                "ontratti WHERE (IdContratto = @IdContratto)"
            Me._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdTrattativa", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdTrattativa", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@ContrattoDoc", System.Data.SqlDbType.Xml, 0, System.Data.ParameterDirection.Input, 0, 0, "ContrattoDoc", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@DataContratto", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "DataContratto", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdContratto", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdContratto", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdTrattativa", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdTrattativa", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_CodiceTipoOffertaImmobile", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_DataContratto", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "DataContratto", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_DataContratto", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "DataContratto", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdContratto", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, 0, 0, "IdContratto", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitConnection()
            Me._connection = New System.Data.SqlClient.SqlConnection
            Me._connection.ConnectionString = Global.SmartEstate.My.MySettings.Default.SmartEstateConnectionString
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT IdContratto, IdTrattativa, CodiceTipoOffertaImmobile, ContrattoDoc, DataCo"& _ 
                "ntratto FROM dbo.Contratti"
            Me._commandCollection(0).CommandType = System.Data.CommandType.Text
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As SmartEstateDataSet.ContrattiDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As SmartEstateDataSet.ContrattiDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As SmartEstateDataSet.ContrattiDataTable = New SmartEstateDataSet.ContrattiDataTable
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As SmartEstateDataSet.ContrattiDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As SmartEstateDataSet) As Integer
            Return Me.Adapter.Update(dataSet, "Contratti")
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New System.Data.DataRow() {dataRow})
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_IdContratto As Integer, ByVal Original_IdTrattativa As Integer, ByVal Original_CodiceTipoOffertaImmobile As String, ByVal Original_DataContratto As System.Nullable(Of Date)) As Integer
            Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_IdContratto,Integer)
            Me.Adapter.DeleteCommand.Parameters(1).Value = CType(Original_IdTrattativa,Integer)
            If (Original_CodiceTipoOffertaImmobile Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(3).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(3).Value = CType(Original_CodiceTipoOffertaImmobile,String)
            End If
            If (Original_DataContratto.HasValue = true) Then
                Me.Adapter.DeleteCommand.Parameters(4).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(5).Value = CType(Original_DataContratto.Value,Date)
            Else
                Me.Adapter.DeleteCommand.Parameters(4).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(5).Value = System.DBNull.Value
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert(ByVal IdTrattativa As Integer, ByVal CodiceTipoOffertaImmobile As String, ByVal ContrattoDoc As Object, ByVal DataContratto As System.Nullable(Of Date)) As Integer
            Me.Adapter.InsertCommand.Parameters(0).Value = CType(IdTrattativa,Integer)
            If (CodiceTipoOffertaImmobile Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(CodiceTipoOffertaImmobile,String)
            End If
            If (ContrattoDoc Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(2).Value = CType(ContrattoDoc,Object)
            End If
            If (DataContratto.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(3).Value = CType(DataContratto.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(3).Value = System.DBNull.Value
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update(ByVal IdTrattativa As Integer, ByVal CodiceTipoOffertaImmobile As String, ByVal ContrattoDoc As Object, ByVal DataContratto As System.Nullable(Of Date), ByVal Original_IdContratto As Integer, ByVal Original_IdTrattativa As Integer, ByVal Original_CodiceTipoOffertaImmobile As String, ByVal Original_DataContratto As System.Nullable(Of Date), ByVal IdContratto As Integer) As Integer
            Me.Adapter.UpdateCommand.Parameters(0).Value = CType(IdTrattativa,Integer)
            If (CodiceTipoOffertaImmobile Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(CodiceTipoOffertaImmobile,String)
            End If
            If (ContrattoDoc Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(ContrattoDoc,Object)
            End If
            If (DataContratto.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(3).Value = CType(DataContratto.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(3).Value = System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_IdContratto,Integer)
            Me.Adapter.UpdateCommand.Parameters(5).Value = CType(Original_IdTrattativa,Integer)
            If (Original_CodiceTipoOffertaImmobile Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(6).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(6).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Original_CodiceTipoOffertaImmobile,String)
            End If
            If (Original_DataContratto.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(8).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Original_DataContratto.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(8).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(9).Value = System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(10).Value = CType(IdContratto,Integer)
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.ComponentModel.ToolboxItem(true),  _
     System.ComponentModel.DataObjectAttribute(true),  _
     System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class ImmobiliTableAdapter
        Inherits System.ComponentModel.Component
        
        Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As System.Data.SqlClient.SqlConnection
        
        Private _commandCollection() As System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private ReadOnly Property Adapter() As System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Property Connection() As System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected ReadOnly Property CommandCollection() As System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitAdapter()
            Me._adapter = New System.Data.SqlClient.SqlDataAdapter
            Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Immobili"
            tableMapping.ColumnMappings.Add("IdImmobile", "IdImmobile")
            tableMapping.ColumnMappings.Add("IdAgenzia", "IdAgenzia")
            tableMapping.ColumnMappings.Add("CodiceImmobile", "CodiceImmobile")
            tableMapping.ColumnMappings.Add("CodiceTipoImmobile", "CodiceTipoImmobile")
            tableMapping.ColumnMappings.Add("RiferimentoInterno", "RiferimentoInterno")
            tableMapping.ColumnMappings.Add("DescrizioneLunga", "DescrizioneLunga")
            tableMapping.ColumnMappings.Add("DescrizioneBreve", "DescrizioneBreve")
            tableMapping.ColumnMappings.Add("Dimensione", "Dimensione")
            tableMapping.ColumnMappings.Add("Indirizzo", "Indirizzo")
            tableMapping.ColumnMappings.Add("CAP", "CAP")
            tableMapping.ColumnMappings.Add("Zona", "Zona")
            tableMapping.ColumnMappings.Add("Citta", "Citta")
            tableMapping.ColumnMappings.Add("Foto", "Foto")
            tableMapping.ColumnMappings.Add("Planimetria", "Planimetria")
            tableMapping.ColumnMappings.Add("PrezzoMin", "PrezzoMin")
            tableMapping.ColumnMappings.Add("PrezzoMax", "PrezzoMax")
            tableMapping.ColumnMappings.Add("SpeseCondominiali", "SpeseCondominiali")
            tableMapping.ColumnMappings.Add("Valutazione", "Valutazione")
            tableMapping.ColumnMappings.Add("SysTimestamp", "SysTimestamp")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [Immobili] WHERE (([IdImmobile] = @Original_IdImmobile) AND ([SysTime"& _ 
                "stamp] = @Original_SysTimestamp))"
            Me._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdImmobile", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdImmobile", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_SysTimestamp", System.Data.SqlDbType.Timestamp, 0, System.Data.ParameterDirection.Input, 0, 0, "SysTimestamp", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [Immobili] ([IdAgenzia], [CodiceImmobile], [CodiceTipoImmobile], [Rif"& _ 
                "erimentoInterno], [DescrizioneLunga], [DescrizioneBreve], [Dimensione], [Indiriz"& _ 
                "zo], [CAP], [Zona], [Citta], [Foto], [Planimetria], [PrezzoMin], [PrezzoMax], [S"& _ 
                "peseCondominiali], [Valutazione]) VALUES (@IdAgenzia, @CodiceImmobile, @CodiceTi"& _ 
                "poImmobile, @RiferimentoInterno, @DescrizioneLunga, @DescrizioneBreve, @Dimensio"& _ 
                "ne, @Indirizzo, @CAP, @Zona, @Citta, @Foto, @Planimetria, @PrezzoMin, @PrezzoMax"& _ 
                ", @SpeseCondominiali, @Valutazione);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdImmobile, IdAgenzia, CodiceImmobi"& _ 
                "le, CodiceTipoImmobile, RiferimentoInterno, DescrizioneLunga, DescrizioneBreve, "& _ 
                "Dimensione, Indirizzo, CAP, Zona, Citta, Foto, Planimetria, PrezzoMin, PrezzoMax"& _ 
                ", SpeseCondominiali, Valutazione, SysTimestamp FROM Immobili WHERE (IdImmobile ="& _ 
                " SCOPE_IDENTITY())"
            Me._adapter.InsertCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@RiferimentoInterno", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "RiferimentoInterno", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@DescrizioneLunga", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "DescrizioneLunga", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@DescrizioneBreve", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "DescrizioneBreve", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Dimensione", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Dimensione", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CAP", System.Data.SqlDbType.[Char], 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Zona", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Zona", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Foto", System.Data.SqlDbType.Image, 0, System.Data.ParameterDirection.Input, 0, 0, "Foto", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Planimetria", System.Data.SqlDbType.Image, 0, System.Data.ParameterDirection.Input, 0, 0, "Planimetria", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@PrezzoMin", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "PrezzoMin", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@PrezzoMax", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "PrezzoMax", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@SpeseCondominiali", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "SpeseCondominiali", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Valutazione", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Valutazione", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [Immobili] SET [IdAgenzia] = @IdAgenzia, [CodiceImmobile] = @CodiceImmobil"& _ 
                "e, [CodiceTipoImmobile] = @CodiceTipoImmobile, [RiferimentoInterno] = @Riferimen"& _ 
                "toInterno, [DescrizioneLunga] = @DescrizioneLunga, [DescrizioneBreve] = @Descriz"& _ 
                "ioneBreve, [Dimensione] = @Dimensione, [Indirizzo] = @Indirizzo, [CAP] = @CAP, ["& _ 
                "Zona] = @Zona, [Citta] = @Citta, [Foto] = @Foto, [Planimetria] = @Planimetria, ["& _ 
                "PrezzoMin] = @PrezzoMin, [PrezzoMax] = @PrezzoMax, [SpeseCondominiali] = @SpeseC"& _ 
                "ondominiali, [Valutazione] = @Valutazione WHERE (([IdImmobile] = @Original_IdImm"& _ 
                "obile) AND ([SysTimestamp] = @Original_SysTimestamp));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdImmobile, IdAge"& _ 
                "nzia, CodiceImmobile, CodiceTipoImmobile, RiferimentoInterno, DescrizioneLunga, "& _ 
                "DescrizioneBreve, Dimensione, Indirizzo, CAP, Zona, Citta, Foto, Planimetria, Pr"& _ 
                "ezzoMin, PrezzoMax, SpeseCondominiali, Valutazione, SysTimestamp FROM Immobili W"& _ 
                "HERE (IdImmobile = @IdImmobile)"
            Me._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdAgenzia", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgenzia", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@RiferimentoInterno", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "RiferimentoInterno", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@DescrizioneLunga", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "DescrizioneLunga", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@DescrizioneBreve", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "DescrizioneBreve", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Dimensione", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Dimensione", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Indirizzo", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Indirizzo", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CAP", System.Data.SqlDbType.[Char], 0, System.Data.ParameterDirection.Input, 0, 0, "CAP", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Zona", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Zona", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Citta", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Citta", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Foto", System.Data.SqlDbType.Image, 0, System.Data.ParameterDirection.Input, 0, 0, "Foto", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Planimetria", System.Data.SqlDbType.Image, 0, System.Data.ParameterDirection.Input, 0, 0, "Planimetria", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@PrezzoMin", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "PrezzoMin", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@PrezzoMax", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "PrezzoMax", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@SpeseCondominiali", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "SpeseCondominiali", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Valutazione", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Valutazione", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdImmobile", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdImmobile", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_SysTimestamp", System.Data.SqlDbType.Timestamp, 0, System.Data.ParameterDirection.Input, 0, 0, "SysTimestamp", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdImmobile", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, 0, 0, "IdImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitConnection()
            Me._connection = New System.Data.SqlClient.SqlConnection
            Me._connection.ConnectionString = Global.SmartEstate.My.MySettings.Default.SmartEstateConnectionString
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New System.Data.SqlClient.SqlCommand(1) {}
            Me._commandCollection(0) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT     IdImmobile, IdAgenzia, CodiceImmobile, CodiceTipoImmobile, Riferimento"& _ 
                "Interno, DescrizioneLunga, DescrizioneBreve, Dimensione, Indirizzo, CAP, "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"     "& _ 
                "                 Zona, Citta, Foto, Planimetria, PrezzoMin, PrezzoMax, SpeseCond"& _ 
                "ominiali, Valutazione, SysTimestamp"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM         Immobili"
            Me._commandCollection(0).CommandType = System.Data.CommandType.Text
            Me._commandCollection(1) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(1).Connection = Me.Connection
            Me._commandCollection(1).CommandText = "SELECT     IdImmobile, IdAgenzia, CodiceImmobile, CodiceTipoImmobile, Riferimento"& _ 
                "Interno, DescrizioneLunga, DescrizioneBreve, Dimensione, Indirizzo, CAP, "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"     "& _ 
                "                 Zona, Citta, Foto, Planimetria, PrezzoMin, PrezzoMax, SpeseCond"& _ 
                "ominiali, Valutazione, SysTimestamp"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM         Immobili"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"Where CodiceTipoImmo"& _ 
                "bile=@CodiceTipoImmobile"
            Me._commandCollection(1).CommandType = System.Data.CommandType.Text
            Me._commandCollection(1).Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoImmobile", System.Data.SqlDbType.VarChar, 200, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As SmartEstateDataSet.ImmobiliDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As SmartEstateDataSet.ImmobiliDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As SmartEstateDataSet.ImmobiliDataTable = New SmartEstateDataSet.ImmobiliDataTable
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, false)>  _
        Public Overloads Overridable Function FiltraTipoImmobile(ByVal dataTable As SmartEstateDataSet.ImmobiliDataTable, ByVal CodiceTipoImmobile As String) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(1)
            If (CodiceTipoImmobile Is Nothing) Then
                Me.Adapter.SelectCommand.Parameters(0).Value = System.DBNull.Value
            Else
                Me.Adapter.SelectCommand.Parameters(0).Value = CType(CodiceTipoImmobile,String)
            End If
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As SmartEstateDataSet.ImmobiliDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As SmartEstateDataSet) As Integer
            Return Me.Adapter.Update(dataSet, "Immobili")
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New System.Data.DataRow() {dataRow})
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_IdImmobile As Integer, ByVal Original_SysTimestamp() As Byte) As Integer
            Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_IdImmobile,Integer)
            If (Original_SysTimestamp Is Nothing) Then
                Throw New System.ArgumentNullException("Original_SysTimestamp")
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(Original_SysTimestamp,Byte())
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert( _
                    ByVal IdAgenzia As Integer,  _
                    ByVal CodiceImmobile As String,  _
                    ByVal CodiceTipoImmobile As String,  _
                    ByVal RiferimentoInterno As String,  _
                    ByVal DescrizioneLunga As String,  _
                    ByVal DescrizioneBreve As String,  _
                    ByVal Dimensione As System.Nullable(Of Integer),  _
                    ByVal Indirizzo As String,  _
                    ByVal CAP As String,  _
                    ByVal Zona As String,  _
                    ByVal Citta As String,  _
                    ByVal Foto() As Byte,  _
                    ByVal Planimetria() As Byte,  _
                    ByVal PrezzoMin As System.Nullable(Of Integer),  _
                    ByVal PrezzoMax As System.Nullable(Of Integer),  _
                    ByVal SpeseCondominiali As System.Nullable(Of Integer),  _
                    ByVal Valutazione As System.Nullable(Of Integer)) As Integer
            Me.Adapter.InsertCommand.Parameters(0).Value = CType(IdAgenzia,Integer)
            If (CodiceImmobile Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(CodiceImmobile,String)
            End If
            If (CodiceTipoImmobile Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(2).Value = CType(CodiceTipoImmobile,String)
            End If
            If (RiferimentoInterno Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(3).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(3).Value = CType(RiferimentoInterno,String)
            End If
            If (DescrizioneLunga Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(4).Value = CType(DescrizioneLunga,String)
            End If
            If (DescrizioneBreve Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(5).Value = CType(DescrizioneBreve,String)
            End If
            If (Dimensione.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(6).Value = CType(Dimensione.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(6).Value = System.DBNull.Value
            End If
            If (Indirizzo Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(7).Value = CType(Indirizzo,String)
            End If
            If (CAP Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(8).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(8).Value = CType(CAP,String)
            End If
            If (Zona Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(9).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(9).Value = CType(Zona,String)
            End If
            If (Citta Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(10).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(10).Value = CType(Citta,String)
            End If
            If (Foto Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(11).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(11).Value = CType(Foto,Byte())
            End If
            If (Planimetria Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(12).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(12).Value = CType(Planimetria,Byte())
            End If
            If (PrezzoMin.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(13).Value = CType(PrezzoMin.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(13).Value = System.DBNull.Value
            End If
            If (PrezzoMax.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(14).Value = CType(PrezzoMax.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(14).Value = System.DBNull.Value
            End If
            If (SpeseCondominiali.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(15).Value = CType(SpeseCondominiali.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(15).Value = System.DBNull.Value
            End If
            If (Valutazione.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(16).Value = CType(Valutazione.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(16).Value = System.DBNull.Value
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal IdAgenzia As Integer,  _
                    ByVal CodiceImmobile As String,  _
                    ByVal CodiceTipoImmobile As String,  _
                    ByVal RiferimentoInterno As String,  _
                    ByVal DescrizioneLunga As String,  _
                    ByVal DescrizioneBreve As String,  _
                    ByVal Dimensione As System.Nullable(Of Integer),  _
                    ByVal Indirizzo As String,  _
                    ByVal CAP As String,  _
                    ByVal Zona As String,  _
                    ByVal Citta As String,  _
                    ByVal Foto() As Byte,  _
                    ByVal Planimetria() As Byte,  _
                    ByVal PrezzoMin As System.Nullable(Of Integer),  _
                    ByVal PrezzoMax As System.Nullable(Of Integer),  _
                    ByVal SpeseCondominiali As System.Nullable(Of Integer),  _
                    ByVal Valutazione As System.Nullable(Of Integer),  _
                    ByVal Original_IdImmobile As Integer,  _
                    ByVal Original_SysTimestamp() As Byte,  _
                    ByVal IdImmobile As Integer) As Integer
            Me.Adapter.UpdateCommand.Parameters(0).Value = CType(IdAgenzia,Integer)
            If (CodiceImmobile Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(CodiceImmobile,String)
            End If
            If (CodiceTipoImmobile Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(CodiceTipoImmobile,String)
            End If
            If (RiferimentoInterno Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(3).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(3).Value = CType(RiferimentoInterno,String)
            End If
            If (DescrizioneLunga Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(4).Value = CType(DescrizioneLunga,String)
            End If
            If (DescrizioneBreve Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(5).Value = CType(DescrizioneBreve,String)
            End If
            If (Dimensione.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(6).Value = CType(Dimensione.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(6).Value = System.DBNull.Value
            End If
            If (Indirizzo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Indirizzo,String)
            End If
            If (CAP Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(8).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(8).Value = CType(CAP,String)
            End If
            If (Zona Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(9).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Zona,String)
            End If
            If (Citta Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(10).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(10).Value = CType(Citta,String)
            End If
            If (Foto Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(11).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(11).Value = CType(Foto,Byte())
            End If
            If (Planimetria Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(12).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(12).Value = CType(Planimetria,Byte())
            End If
            If (PrezzoMin.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(13).Value = CType(PrezzoMin.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(13).Value = System.DBNull.Value
            End If
            If (PrezzoMax.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(14).Value = CType(PrezzoMax.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(14).Value = System.DBNull.Value
            End If
            If (SpeseCondominiali.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(15).Value = CType(SpeseCondominiali.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(15).Value = System.DBNull.Value
            End If
            If (Valutazione.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(Valutazione.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(16).Value = System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(17).Value = CType(Original_IdImmobile,Integer)
            If (Original_SysTimestamp Is Nothing) Then
                Throw New System.ArgumentNullException("Original_SysTimestamp")
            Else
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(Original_SysTimestamp,Byte())
            End If
            Me.Adapter.UpdateCommand.Parameters(19).Value = CType(IdImmobile,Integer)
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.ComponentModel.ToolboxItem(true),  _
     System.ComponentModel.DataObjectAttribute(true),  _
     System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class OfferteTableAdapter
        Inherits System.ComponentModel.Component
        
        Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As System.Data.SqlClient.SqlConnection
        
        Private _commandCollection() As System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private ReadOnly Property Adapter() As System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Property Connection() As System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected ReadOnly Property CommandCollection() As System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitAdapter()
            Me._adapter = New System.Data.SqlClient.SqlDataAdapter
            Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Offerte"
            tableMapping.ColumnMappings.Add("IdOfferta", "IdOfferta")
            tableMapping.ColumnMappings.Add("IdPreventivo", "IdPreventivo")
            tableMapping.ColumnMappings.Add("OffertaDoc", "OffertaDoc")
            tableMapping.ColumnMappings.Add("CodiceTipoOffertaImmobile", "CodiceTipoOffertaImmobile")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Offerte] WHERE (([IdOfferta] = @Original_IdOfferta) AND ((@IsN"& _ 
                "ull_IdPreventivo = 1 AND [IdPreventivo] IS NULL) OR ([IdPreventivo] = @Original_"& _ 
                "IdPreventivo)) AND ((@IsNull_CodiceTipoOffertaImmobile = 1 AND [CodiceTipoOffert"& _ 
                "aImmobile] IS NULL) OR ([CodiceTipoOffertaImmobile] = @Original_CodiceTipoOffert"& _ 
                "aImmobile)))"
            Me._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdOfferta", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdOfferta", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_IdPreventivo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdPreventivo", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdPreventivo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdPreventivo", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_CodiceTipoOffertaImmobile", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Offerte] SET [IdPreventivo] = @IdPreventivo, [OffertaDoc] = @Offert"& _ 
                "aDoc, [CodiceTipoOffertaImmobile] = @CodiceTipoOffertaImmobile WHERE (([IdOffert"& _ 
                "a] = @Original_IdOfferta) AND ((@IsNull_IdPreventivo = 1 AND [IdPreventivo] IS N"& _ 
                "ULL) OR ([IdPreventivo] = @Original_IdPreventivo)) AND ((@IsNull_CodiceTipoOffer"& _ 
                "taImmobile = 1 AND [CodiceTipoOffertaImmobile] IS NULL) OR ([CodiceTipoOffertaIm"& _ 
                "mobile] = @Original_CodiceTipoOffertaImmobile)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdOfferta, IdPreventiv"& _ 
                "o, OffertaDoc, CodiceTipoOffertaImmobile FROM Offerte WHERE (IdOfferta = @IdOffe"& _ 
                "rta)"
            Me._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdPreventivo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdPreventivo", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@OffertaDoc", System.Data.SqlDbType.Xml, 0, System.Data.ParameterDirection.Input, 0, 0, "OffertaDoc", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdOfferta", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdOfferta", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_IdPreventivo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdPreventivo", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdPreventivo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdPreventivo", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_CodiceTipoOffertaImmobile", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdOfferta", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, 0, 0, "IdOfferta", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitConnection()
            Me._connection = New System.Data.SqlClient.SqlConnection
            Me._connection.ConnectionString = Global.SmartEstate.My.MySettings.Default.SmartEstateConnectionString
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT IdOfferta, IdPreventivo, OffertaDoc, CodiceTipoOffertaImmobile FROM dbo.Of"& _ 
                "ferte"
            Me._commandCollection(0).CommandType = System.Data.CommandType.Text
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As SmartEstateDataSet.OfferteDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As SmartEstateDataSet.OfferteDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As SmartEstateDataSet.OfferteDataTable = New SmartEstateDataSet.OfferteDataTable
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As SmartEstateDataSet.OfferteDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As SmartEstateDataSet) As Integer
            Return Me.Adapter.Update(dataSet, "Offerte")
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New System.Data.DataRow() {dataRow})
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_IdOfferta As Integer, ByVal Original_IdPreventivo As System.Nullable(Of Integer), ByVal Original_CodiceTipoOffertaImmobile As String) As Integer
            Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_IdOfferta,Integer)
            If (Original_IdPreventivo.HasValue = true) Then
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_IdPreventivo.Value,Integer)
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(2).Value = System.DBNull.Value
            End If
            If (Original_CodiceTipoOffertaImmobile Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_CodiceTipoOffertaImmobile,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update(ByVal IdPreventivo As System.Nullable(Of Integer), ByVal OffertaDoc As Object, ByVal CodiceTipoOffertaImmobile As String, ByVal Original_IdOfferta As Integer, ByVal Original_IdPreventivo As System.Nullable(Of Integer), ByVal Original_CodiceTipoOffertaImmobile As String, ByVal IdOfferta As Integer) As Integer
            If (IdPreventivo.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(0).Value = CType(IdPreventivo.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(0).Value = System.DBNull.Value
            End If
            If (OffertaDoc Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(OffertaDoc,Object)
            End If
            If (CodiceTipoOffertaImmobile Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(CodiceTipoOffertaImmobile,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Original_IdOfferta,Integer)
            If (Original_IdPreventivo.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(4).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(5).Value = CType(Original_IdPreventivo.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(4).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(5).Value = System.DBNull.Value
            End If
            If (Original_CodiceTipoOffertaImmobile Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(6).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(7).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(6).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Original_CodiceTipoOffertaImmobile,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(8).Value = CType(IdOfferta,Integer)
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.ComponentModel.ToolboxItem(true),  _
     System.ComponentModel.DataObjectAttribute(true),  _
     System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class PreventiviTableAdapter
        Inherits System.ComponentModel.Component
        
        Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As System.Data.SqlClient.SqlConnection
        
        Private _commandCollection() As System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private ReadOnly Property Adapter() As System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Property Connection() As System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected ReadOnly Property CommandCollection() As System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitAdapter()
            Me._adapter = New System.Data.SqlClient.SqlDataAdapter
            Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Preventivi"
            tableMapping.ColumnMappings.Add("IdPreventivo", "IdPreventivo")
            tableMapping.ColumnMappings.Add("IdCliente", "IdCliente")
            tableMapping.ColumnMappings.Add("IdImmobile", "IdImmobile")
            tableMapping.ColumnMappings.Add("IdAgente", "IdAgente")
            tableMapping.ColumnMappings.Add("Appuntamento", "Appuntamento")
            tableMapping.ColumnMappings.Add("PreventivoDoc", "PreventivoDoc")
            tableMapping.ColumnMappings.Add("CodiceTipoOffertaImmobile", "CodiceTipoOffertaImmobile")
            tableMapping.ColumnMappings.Add("SysTimestamp", "SysTimestamp")
            tableMapping.ColumnMappings.Add("Agente", "Agente")
            tableMapping.ColumnMappings.Add("Nome", "Nome")
            tableMapping.ColumnMappings.Add("Cognome", "Cognome")
            tableMapping.ColumnMappings.Add("Descrizione", "Descrizione")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [Preventivi] WHERE (([IdPreventivo] = @Original_IdPreventivo) AND ([S"& _ 
                "ysTimestamp] = @Original_SysTimestamp))"
            Me._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdPreventivo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdPreventivo", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_SysTimestamp", System.Data.SqlDbType.Timestamp, 0, System.Data.ParameterDirection.Input, 0, 0, "SysTimestamp", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [Preventivi] ([IdCliente], [IdImmobile], [IdAgente], [Appuntamento], "& _ 
                "[PreventivoDoc], [CodiceTipoOffertaImmobile]) VALUES (@IdCliente, @IdImmobile, @"& _ 
                "IdAgente, @Appuntamento, @PreventivoDoc, @CodiceTipoOffertaImmobile);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT Id"& _ 
                "Preventivo, IdCliente, IdImmobile, IdAgente, Appuntamento, PreventivoDoc, Codice"& _ 
                "TipoOffertaImmobile, SysTimestamp FROM Preventivi WHERE (IdPreventivo = SCOPE_ID"& _ 
                "ENTITY())"
            Me._adapter.InsertCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdCliente", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdCliente", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdImmobile", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdAgente", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgente", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Appuntamento", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "Appuntamento", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@PreventivoDoc", System.Data.SqlDbType.Xml, 0, System.Data.ParameterDirection.Input, 0, 0, "PreventivoDoc", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [Preventivi] SET [IdCliente] = @IdCliente, [IdImmobile] = @IdImmobile, [Id"& _ 
                "Agente] = @IdAgente, [Appuntamento] = @Appuntamento, [PreventivoDoc] = @Preventi"& _ 
                "voDoc, [CodiceTipoOffertaImmobile] = @CodiceTipoOffertaImmobile WHERE (([IdPreve"& _ 
                "ntivo] = @Original_IdPreventivo) AND ([SysTimestamp] = @Original_SysTimestamp));"& _ 
                ""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT IdPreventivo, IdCliente, IdImmobile, IdAgente, Appuntamento, Preventivo"& _ 
                "Doc, CodiceTipoOffertaImmobile, SysTimestamp FROM Preventivi WHERE (IdPreventivo"& _ 
                " = @IdPreventivo)"
            Me._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdCliente", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdCliente", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdImmobile", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdAgente", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdAgente", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Appuntamento", System.Data.SqlDbType.DateTime, 0, System.Data.ParameterDirection.Input, 0, 0, "Appuntamento", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@PreventivoDoc", System.Data.SqlDbType.Xml, 0, System.Data.ParameterDirection.Input, 0, 0, "PreventivoDoc", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_IdPreventivo", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "IdPreventivo", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_SysTimestamp", System.Data.SqlDbType.Timestamp, 0, System.Data.ParameterDirection.Input, 0, 0, "SysTimestamp", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IdPreventivo", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, 0, 0, "IdPreventivo", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitConnection()
            Me._connection = New System.Data.SqlClient.SqlConnection
            Me._connection.ConnectionString = Global.SmartEstate.My.MySettings.Default.SmartEstateConnectionString
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New System.Data.SqlClient.SqlCommand(1) {}
            Me._commandCollection(0) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT     Preventivi.IdPreventivo, Preventivi.IdCliente, Preventivi.IdImmobile, "& _ 
                "Preventivi.IdAgente, Preventivi.Appuntamento, Preventivi.PreventivoDoc, "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"      "& _ 
                "                Preventivi.CodiceTipoOffertaImmobile, Preventivi.SysTimestamp, A"& _ 
                "genti.Nome AS Agente, Clienti.Nome, Clienti.Cognome, "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"                      Tip"& _ 
                "oOffertaImmobile.Descrizione"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM         Preventivi INNER JOIN"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"              "& _ 
                "        Agenti ON Preventivi.IdAgente = Agenti.IdAgente INNER JOIN"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"            "& _ 
                "          Clienti ON Preventivi.IdCliente = Clienti.IdCliente INNER JOIN"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"      "& _ 
                "                TipoOffertaImmobile ON Preventivi.CodiceTipoOffertaImmobile = Ti"& _ 
                "poOffertaImmobile.CodiceTipoOffertaImmobile"
            Me._commandCollection(0).CommandType = System.Data.CommandType.Text
            Me._commandCollection(1) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(1).Connection = Me.Connection
            Me._commandCollection(1).CommandText = "SELECT     Preventivi.IdPreventivo, Preventivi.IdCliente, Preventivi.IdImmobile, "& _ 
                "Preventivi.IdAgente, Preventivi.Appuntamento, Preventivi.PreventivoDoc, "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"      "& _ 
                "                Preventivi.CodiceTipoOffertaImmobile, Preventivi.SysTimestamp, A"& _ 
                "genti.Nome AS Agente, Clienti.Nome, Clienti.Cognome, "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"                      Tip"& _ 
                "oOffertaImmobile.Descrizione"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM         Preventivi INNER JOIN"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"              "& _ 
                "        Agenti ON Preventivi.IdAgente = Agenti.IdAgente INNER JOIN"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"            "& _ 
                "          Clienti ON Preventivi.IdCliente = Clienti.IdCliente INNER JOIN"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"      "& _ 
                "                TipoOffertaImmobile ON Preventivi.CodiceTipoOffertaImmobile = Ti"& _ 
                "poOffertaImmobile.CodiceTipoOffertaImmobile"
            Me._commandCollection(1).CommandType = System.Data.CommandType.Text
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As SmartEstateDataSet.PreventiviDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As SmartEstateDataSet.PreventiviDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As SmartEstateDataSet.PreventiviDataTable = New SmartEstateDataSet.PreventiviDataTable
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, false)>  _
        Public Overloads Overridable Function FillBy(ByVal dataTable As SmartEstateDataSet.PreventiviDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(1)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As SmartEstateDataSet.PreventiviDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As SmartEstateDataSet) As Integer
            Return Me.Adapter.Update(dataSet, "Preventivi")
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New System.Data.DataRow() {dataRow})
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_IdPreventivo As Integer, ByVal Original_SysTimestamp() As Byte) As Integer
            Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_IdPreventivo,Integer)
            If (Original_SysTimestamp Is Nothing) Then
                Throw New System.ArgumentNullException("Original_SysTimestamp")
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(Original_SysTimestamp,Byte())
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert(ByVal IdCliente As Integer, ByVal IdImmobile As Integer, ByVal IdAgente As Integer, ByVal Appuntamento As System.Nullable(Of Date), ByVal PreventivoDoc As Object, ByVal CodiceTipoOffertaImmobile As String) As Integer
            Me.Adapter.InsertCommand.Parameters(0).Value = CType(IdCliente,Integer)
            Me.Adapter.InsertCommand.Parameters(1).Value = CType(IdImmobile,Integer)
            Me.Adapter.InsertCommand.Parameters(2).Value = CType(IdAgente,Integer)
            If (Appuntamento.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(3).Value = CType(Appuntamento.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(3).Value = System.DBNull.Value
            End If
            If (PreventivoDoc Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(4).Value = CType(PreventivoDoc,Object)
            End If
            If (CodiceTipoOffertaImmobile Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(5).Value = CType(CodiceTipoOffertaImmobile,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update(ByVal IdCliente As Integer, ByVal IdImmobile As Integer, ByVal IdAgente As Integer, ByVal Appuntamento As System.Nullable(Of Date), ByVal PreventivoDoc As Object, ByVal CodiceTipoOffertaImmobile As String, ByVal Original_IdPreventivo As Integer, ByVal Original_SysTimestamp() As Byte, ByVal IdPreventivo As Integer) As Integer
            Me.Adapter.UpdateCommand.Parameters(0).Value = CType(IdCliente,Integer)
            Me.Adapter.UpdateCommand.Parameters(1).Value = CType(IdImmobile,Integer)
            Me.Adapter.UpdateCommand.Parameters(2).Value = CType(IdAgente,Integer)
            If (Appuntamento.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Appuntamento.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(3).Value = System.DBNull.Value
            End If
            If (PreventivoDoc Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(4).Value = CType(PreventivoDoc,Object)
            End If
            If (CodiceTipoOffertaImmobile Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(5).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(5).Value = CType(CodiceTipoOffertaImmobile,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(6).Value = CType(Original_IdPreventivo,Integer)
            If (Original_SysTimestamp Is Nothing) Then
                Throw New System.ArgumentNullException("Original_SysTimestamp")
            Else
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Original_SysTimestamp,Byte())
            End If
            Me.Adapter.UpdateCommand.Parameters(8).Value = CType(IdPreventivo,Integer)
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.ComponentModel.ToolboxItem(true),  _
     System.ComponentModel.DataObjectAttribute(true),  _
     System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class TipoImmobileTableAdapter
        Inherits System.ComponentModel.Component
        
        Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As System.Data.SqlClient.SqlConnection
        
        Private _commandCollection() As System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private ReadOnly Property Adapter() As System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Property Connection() As System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected ReadOnly Property CommandCollection() As System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitAdapter()
            Me._adapter = New System.Data.SqlClient.SqlDataAdapter
            Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "TipoImmobile"
            tableMapping.ColumnMappings.Add("CodiceTipoImmobile", "CodiceTipoImmobile")
            tableMapping.ColumnMappings.Add("Descrizione", "Descrizione")
            tableMapping.ColumnMappings.Add("SysTimestamp", "SysTimestamp")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [TipoImmobile] WHERE (([CodiceTipoImmobile] = @Original_CodiceTipoImm"& _ 
                "obile))"
            Me._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CodiceTipoImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoImmobile", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [TipoImmobile] ([CodiceTipoImmobile], [Descrizione]) VALUES (@CodiceT"& _ 
                "ipoImmobile, @Descrizione)"
            Me._adapter.InsertCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Descrizione", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Descrizione", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [TipoImmobile] SET [CodiceTipoImmobile] = @CodiceTipoImmobile, [Descrizion"& _ 
                "e] = @Descrizione WHERE (([CodiceTipoImmobile] = @Original_CodiceTipoImmobile))"
            Me._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Descrizione", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Descrizione", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CodiceTipoImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoImmobile", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitConnection()
            Me._connection = New System.Data.SqlClient.SqlConnection
            Me._connection.ConnectionString = Global.SmartEstate.My.MySettings.Default.SmartEstateConnectionString
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT     CodiceTipoImmobile, Descrizione, SysTimestamp"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM         TipoImmobi"& _ 
                "le"
            Me._commandCollection(0).CommandType = System.Data.CommandType.Text
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As SmartEstateDataSet.TipoImmobileDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As SmartEstateDataSet.TipoImmobileDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As SmartEstateDataSet.TipoImmobileDataTable = New SmartEstateDataSet.TipoImmobileDataTable
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As SmartEstateDataSet.TipoImmobileDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As SmartEstateDataSet) As Integer
            Return Me.Adapter.Update(dataSet, "TipoImmobile")
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New System.Data.DataRow() {dataRow})
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_CodiceTipoImmobile As String) As Integer
            If (Original_CodiceTipoImmobile Is Nothing) Then
                Throw New System.ArgumentNullException("Original_CodiceTipoImmobile")
            Else
                Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodiceTipoImmobile,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert(ByVal CodiceTipoImmobile As String, ByVal Descrizione As String) As Integer
            If (CodiceTipoImmobile Is Nothing) Then
                Throw New System.ArgumentNullException("CodiceTipoImmobile")
            Else
                Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodiceTipoImmobile,String)
            End If
            If (Descrizione Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrizione,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update(ByVal CodiceTipoImmobile As String, ByVal Descrizione As String, ByVal Original_CodiceTipoImmobile As String) As Integer
            If (CodiceTipoImmobile Is Nothing) Then
                Throw New System.ArgumentNullException("CodiceTipoImmobile")
            Else
                Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodiceTipoImmobile,String)
            End If
            If (Descrizione Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrizione,String)
            End If
            If (Original_CodiceTipoImmobile Is Nothing) Then
                Throw New System.ArgumentNullException("Original_CodiceTipoImmobile")
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_CodiceTipoImmobile,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.ComponentModel.ToolboxItem(true),  _
     System.ComponentModel.DataObjectAttribute(true),  _
     System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class TipoOffertaImmobileTableAdapter
        Inherits System.ComponentModel.Component
        
        Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As System.Data.SqlClient.SqlConnection
        
        Private _commandCollection() As System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private ReadOnly Property Adapter() As System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Friend Property Connection() As System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Protected ReadOnly Property CommandCollection() As System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitAdapter()
            Me._adapter = New System.Data.SqlClient.SqlDataAdapter
            Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "TipoOffertaImmobile"
            tableMapping.ColumnMappings.Add("CodiceTipoOffertaImmobile", "CodiceTipoOffertaImmobile")
            tableMapping.ColumnMappings.Add("Descrizione", "Descrizione")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TipoOffertaImmobile] WHERE (([CodiceTipoOffertaImmobile] = @Or"& _ 
                "iginal_CodiceTipoOffertaImmobile) AND ((@IsNull_Descrizione = 1 AND [Descrizione"& _ 
                "] IS NULL) OR ([Descrizione] = @Original_Descrizione)))"
            Me._adapter.DeleteCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Descrizione", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Descrizione", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Descrizione", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New System.Data.SqlClient.SqlCommand
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TipoOffertaImmobile] SET [CodiceTipoOffertaImmobile] = @CodiceTipoO"& _ 
                "ffertaImmobile, [Descrizione] = @Descrizione WHERE (([CodiceTipoOffertaImmobile]"& _ 
                " = @Original_CodiceTipoOffertaImmobile) AND ((@IsNull_Descrizione = 1 AND [Descr"& _ 
                "izione] IS NULL) OR ([Descrizione] = @Original_Descrizione)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodiceTip"& _ 
                "oOffertaImmobile, Descrizione FROM TipoOffertaImmobile WHERE (CodiceTipoOffertaI"& _ 
                "mmobile = @CodiceTipoOffertaImmobile)"
            Me._adapter.UpdateCommand.CommandType = System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Descrizione", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Descrizione", System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_CodiceTipoOffertaImmobile", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "CodiceTipoOffertaImmobile", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, 0, 0, "Descrizione", System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_Descrizione", System.Data.SqlDbType.VarChar, 0, System.Data.ParameterDirection.Input, 0, 0, "Descrizione", System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitConnection()
            Me._connection = New System.Data.SqlClient.SqlConnection
            Me._connection.ConnectionString = Global.SmartEstate.My.MySettings.Default.SmartEstateConnectionString
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New System.Data.SqlClient.SqlCommand
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT CodiceTipoOffertaImmobile, Descrizione FROM dbo.TipoOffertaImmobile"
            Me._commandCollection(0).CommandType = System.Data.CommandType.Text
        End Sub
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As SmartEstateDataSet.TipoOffertaImmobileDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As SmartEstateDataSet.TipoOffertaImmobileDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As SmartEstateDataSet.TipoOffertaImmobileDataTable = New SmartEstateDataSet.TipoOffertaImmobileDataTable
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As SmartEstateDataSet.TipoOffertaImmobileDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As SmartEstateDataSet) As Integer
            Return Me.Adapter.Update(dataSet, "TipoOffertaImmobile")
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New System.Data.DataRow() {dataRow})
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_CodiceTipoOffertaImmobile As String, ByVal Original_Descrizione As String) As Integer
            If (Original_CodiceTipoOffertaImmobile Is Nothing) Then
                Throw New System.ArgumentNullException("Original_CodiceTipoOffertaImmobile")
            Else
                Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodiceTipoOffertaImmobile,String)
            End If
            If (Original_Descrizione Is Nothing) Then
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
                Me.Adapter.DeleteCommand.Parameters(2).Value = System.DBNull.Value
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrizione,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update(ByVal CodiceTipoOffertaImmobile As String, ByVal Descrizione As String, ByVal Original_CodiceTipoOffertaImmobile As String, ByVal Original_Descrizione As String) As Integer
            If (CodiceTipoOffertaImmobile Is Nothing) Then
                Throw New System.ArgumentNullException("CodiceTipoOffertaImmobile")
            Else
                Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodiceTipoOffertaImmobile,String)
            End If
            If (Descrizione Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(1).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrizione,String)
            End If
            If (Original_CodiceTipoOffertaImmobile Is Nothing) Then
                Throw New System.ArgumentNullException("Original_CodiceTipoOffertaImmobile")
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_CodiceTipoOffertaImmobile,String)
            End If
            If (Original_Descrizione Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(3).Value = CType(1,Object)
                Me.Adapter.UpdateCommand.Parameters(4).Value = System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(3).Value = CType(0,Object)
                Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_Descrizione,String)
            End If
            Dim previousConnectionState As System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And System.Data.ConnectionState.Open)  _
                        <> System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
    End Class
End Namespace
