'------------------------------------------------------------------------------
' <auto-generated>
'     Este código fue generado por una herramienta.
'     Versión de runtime:4.0.30319.544
'
'     Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
'     se vuelve a generar el código.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict On
Option Explicit On

Imports System.Runtime.Serialization

'
'This code was auto-generated by Microsoft.Silverlight.ServiceReference, version 5.0.61118.0
'
Namespace ServiceReference1
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"),  _
     System.Runtime.Serialization.DataContractAttribute(Name:="Detalles", [Namespace]:="http://schemas.datacontract.org/2004/07/ServicioWcfTfnos")>  _
    Partial Public Class Detalles
        Inherits Object
        Implements System.ComponentModel.INotifyPropertyChanged
        
        Private apellido1Field As String
        
        Private telefonoField As String
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property apellido1() As String
            Get
                Return Me.apellido1Field
            End Get
            Set
                If (Object.ReferenceEquals(Me.apellido1Field, value) <> true) Then
                    Me.apellido1Field = value
                    Me.RaisePropertyChanged("apellido1")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property telefono() As String
            Get
                Return Me.telefonoField
            End Get
            Set
                If (Object.ReferenceEquals(Me.telefonoField, value) <> true) Then
                    Me.telefonoField = value
                    Me.RaisePropertyChanged("telefono")
                End If
            End Set
        End Property
        
        Public Event PropertyChanged As System.ComponentModel.PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
        
        Protected Sub RaisePropertyChanged(ByVal propertyName As String)
            Dim propertyChanged As System.ComponentModel.PropertyChangedEventHandler = Me.PropertyChangedEvent
            If (Not (propertyChanged) Is Nothing) Then
                propertyChanged(Me, New System.ComponentModel.PropertyChangedEventArgs(propertyName))
            End If
        End Sub
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"),  _
     System.Runtime.Serialization.DataContractAttribute(Name:="StructuralObject", [Namespace]:="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses", IsReference:=true),  _
     System.Runtime.Serialization.KnownTypeAttribute(GetType(ServiceReference1.EntityObject)),  _
     System.Runtime.Serialization.KnownTypeAttribute(GetType(ServiceReference1.telefono))>  _
    Partial Public Class StructuralObject
        Inherits Object
        Implements System.ComponentModel.INotifyPropertyChanged
        
        Public Event PropertyChanged As System.ComponentModel.PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
        
        Protected Sub RaisePropertyChanged(ByVal propertyName As String)
            Dim propertyChanged As System.ComponentModel.PropertyChangedEventHandler = Me.PropertyChangedEvent
            If (Not (propertyChanged) Is Nothing) Then
                propertyChanged(Me, New System.ComponentModel.PropertyChangedEventArgs(propertyName))
            End If
        End Sub
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"),  _
     System.Runtime.Serialization.DataContractAttribute(Name:="EntityObject", [Namespace]:="http://schemas.datacontract.org/2004/07/System.Data.Objects.DataClasses", IsReference:=true),  _
     System.Runtime.Serialization.KnownTypeAttribute(GetType(ServiceReference1.telefono))>  _
    Partial Public Class EntityObject
        Inherits ServiceReference1.StructuralObject
        
        Private EntityKeyField As ServiceReference1.EntityKey
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property EntityKey() As ServiceReference1.EntityKey
            Get
                Return Me.EntityKeyField
            End Get
            Set
                If (Object.ReferenceEquals(Me.EntityKeyField, value) <> true) Then
                    Me.EntityKeyField = value
                    Me.RaisePropertyChanged("EntityKey")
                End If
            End Set
        End Property
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"),  _
     System.Runtime.Serialization.DataContractAttribute(Name:="telefono", [Namespace]:="http://schemas.datacontract.org/2004/07/ServicioWcfTfnos", IsReference:=true)>  _
    Partial Public Class telefono
        Inherits ServiceReference1.EntityObject
        
        Private apellido1Field As String
        
        Private apellido2Field As String
        
        Private direccionField As String
        
        Private fotoField() As Byte
        
        Private idpersonaField As Integer
        
        Private nombreField As String
        
        Private observacionesField As String
        
        Private telefono1Field As String
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property apellido1() As String
            Get
                Return Me.apellido1Field
            End Get
            Set
                If (Object.ReferenceEquals(Me.apellido1Field, value) <> true) Then
                    Me.apellido1Field = value
                    Me.RaisePropertyChanged("apellido1")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property apellido2() As String
            Get
                Return Me.apellido2Field
            End Get
            Set
                If (Object.ReferenceEquals(Me.apellido2Field, value) <> true) Then
                    Me.apellido2Field = value
                    Me.RaisePropertyChanged("apellido2")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property direccion() As String
            Get
                Return Me.direccionField
            End Get
            Set
                If (Object.ReferenceEquals(Me.direccionField, value) <> true) Then
                    Me.direccionField = value
                    Me.RaisePropertyChanged("direccion")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property foto() As Byte()
            Get
                Return Me.fotoField
            End Get
            Set
                If (Object.ReferenceEquals(Me.fotoField, value) <> true) Then
                    Me.fotoField = value
                    Me.RaisePropertyChanged("foto")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property idpersona() As Integer
            Get
                Return Me.idpersonaField
            End Get
            Set
                If (Me.idpersonaField.Equals(value) <> true) Then
                    Me.idpersonaField = value
                    Me.RaisePropertyChanged("idpersona")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property nombre() As String
            Get
                Return Me.nombreField
            End Get
            Set
                If (Object.ReferenceEquals(Me.nombreField, value) <> true) Then
                    Me.nombreField = value
                    Me.RaisePropertyChanged("nombre")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property observaciones() As String
            Get
                Return Me.observacionesField
            End Get
            Set
                If (Object.ReferenceEquals(Me.observacionesField, value) <> true) Then
                    Me.observacionesField = value
                    Me.RaisePropertyChanged("observaciones")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property telefono1() As String
            Get
                Return Me.telefono1Field
            End Get
            Set
                If (Object.ReferenceEquals(Me.telefono1Field, value) <> true) Then
                    Me.telefono1Field = value
                    Me.RaisePropertyChanged("telefono1")
                End If
            End Set
        End Property
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"),  _
     System.Runtime.Serialization.DataContractAttribute(Name:="EntityKey", [Namespace]:="http://schemas.datacontract.org/2004/07/System.Data", IsReference:=true)>  _
    Partial Public Class EntityKey
        Inherits Object
        Implements System.ComponentModel.INotifyPropertyChanged
        
        Private EntityContainerNameField As String
        
        Private EntityKeyValuesField As System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.EntityKeyMember)
        
        Private EntitySetNameField As String
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property EntityContainerName() As String
            Get
                Return Me.EntityContainerNameField
            End Get
            Set
                If (Object.ReferenceEquals(Me.EntityContainerNameField, value) <> true) Then
                    Me.EntityContainerNameField = value
                    Me.RaisePropertyChanged("EntityContainerName")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property EntityKeyValues() As System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.EntityKeyMember)
            Get
                Return Me.EntityKeyValuesField
            End Get
            Set
                If (Object.ReferenceEquals(Me.EntityKeyValuesField, value) <> true) Then
                    Me.EntityKeyValuesField = value
                    Me.RaisePropertyChanged("EntityKeyValues")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property EntitySetName() As String
            Get
                Return Me.EntitySetNameField
            End Get
            Set
                If (Object.ReferenceEquals(Me.EntitySetNameField, value) <> true) Then
                    Me.EntitySetNameField = value
                    Me.RaisePropertyChanged("EntitySetName")
                End If
            End Set
        End Property
        
        Public Event PropertyChanged As System.ComponentModel.PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
        
        Protected Sub RaisePropertyChanged(ByVal propertyName As String)
            Dim propertyChanged As System.ComponentModel.PropertyChangedEventHandler = Me.PropertyChangedEvent
            If (Not (propertyChanged) Is Nothing) Then
                propertyChanged(Me, New System.ComponentModel.PropertyChangedEventArgs(propertyName))
            End If
        End Sub
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"),  _
     System.Runtime.Serialization.DataContractAttribute(Name:="EntityKeyMember", [Namespace]:="http://schemas.datacontract.org/2004/07/System.Data"),  _
     System.Runtime.Serialization.KnownTypeAttribute(GetType(ServiceReference1.EntityKey)),  _
     System.Runtime.Serialization.KnownTypeAttribute(GetType(System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.EntityKeyMember))),  _
     System.Runtime.Serialization.KnownTypeAttribute(GetType(ServiceReference1.EntityObject)),  _
     System.Runtime.Serialization.KnownTypeAttribute(GetType(ServiceReference1.StructuralObject)),  _
     System.Runtime.Serialization.KnownTypeAttribute(GetType(System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.Detalles))),  _
     System.Runtime.Serialization.KnownTypeAttribute(GetType(ServiceReference1.Detalles)),  _
     System.Runtime.Serialization.KnownTypeAttribute(GetType(ServiceReference1.telefono))>  _
    Partial Public Class EntityKeyMember
        Inherits Object
        Implements System.ComponentModel.INotifyPropertyChanged
        
        Private KeyField As String
        
        Private ValueField As Object
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property Key() As String
            Get
                Return Me.KeyField
            End Get
            Set
                If (Object.ReferenceEquals(Me.KeyField, value) <> true) Then
                    Me.KeyField = value
                    Me.RaisePropertyChanged("Key")
                End If
            End Set
        End Property
        
        <System.Runtime.Serialization.DataMemberAttribute()>  _
        Public Property Value() As Object
            Get
                Return Me.ValueField
            End Get
            Set
                If (Object.ReferenceEquals(Me.ValueField, value) <> true) Then
                    Me.ValueField = value
                    Me.RaisePropertyChanged("Value")
                End If
            End Set
        End Property
        
        Public Event PropertyChanged As System.ComponentModel.PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
        
        Protected Sub RaisePropertyChanged(ByVal propertyName As String)
            Dim propertyChanged As System.ComponentModel.PropertyChangedEventHandler = Me.PropertyChangedEvent
            If (Not (propertyChanged) Is Nothing) Then
                propertyChanged(Me, New System.ComponentModel.PropertyChangedEventArgs(propertyName))
            End If
        End Sub
    End Class
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0"),  _
     System.ServiceModel.ServiceContractAttribute(ConfigurationName:="ServiceReference1.IService1")>  _
    Public Interface IService1
        
        <System.ServiceModel.OperationContractAttribute(AsyncPattern:=true, Action:="http://tempuri.org/IService1/ObtenerTfnos", ReplyAction:="http://tempuri.org/IService1/ObtenerTfnosResponse")>  _
        Function BeginObtenerTfnos(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
        
        Function EndObtenerTfnos(ByVal result As System.IAsyncResult) As System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.Detalles)
        
        <System.ServiceModel.OperationContractAttribute(AsyncPattern:=true, Action:="http://tempuri.org/IService1/ObtenerTfno", ReplyAction:="http://tempuri.org/IService1/ObtenerTfnoResponse")>  _
        Function BeginObtenerTfno(ByVal tf As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
        
        Function EndObtenerTfno(ByVal result As System.IAsyncResult) As ServiceReference1.telefono
        
        <System.ServiceModel.OperationContractAttribute(AsyncPattern:=true, Action:="http://tempuri.org/IService1/ActualizarTfno", ReplyAction:="http://tempuri.org/IService1/ActualizarTfnoResponse")>  _
        Function BeginActualizarTfno(ByVal entidad As ServiceReference1.telefono, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
        
        Sub EndActualizarTfno(ByVal result As System.IAsyncResult)
        
        <System.ServiceModel.OperationContractAttribute(AsyncPattern:=true, Action:="http://tempuri.org/IService1/AgregarTfno", ReplyAction:="http://tempuri.org/IService1/AgregarTfnoResponse")>  _
        Function BeginAgregarTfno(ByVal entidad As ServiceReference1.telefono, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
        
        Sub EndAgregarTfno(ByVal result As System.IAsyncResult)
        
        <System.ServiceModel.OperationContractAttribute(AsyncPattern:=true, Action:="http://tempuri.org/IService1/BorrarTfno", ReplyAction:="http://tempuri.org/IService1/BorrarTfnoResponse")>  _
        Function BeginBorrarTfno(ByVal entidad As ServiceReference1.telefono, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
        
        Sub EndBorrarTfno(ByVal result As System.IAsyncResult)
    End Interface
    
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")>  _
    Public Interface IService1Channel
        Inherits ServiceReference1.IService1, System.ServiceModel.IClientChannel
    End Interface
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")>  _
    Partial Public Class ObtenerTfnosCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Public Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        Public ReadOnly Property Result() As System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.Detalles)
            Get
                MyBase.RaiseExceptionIfNecessary
                Return CType(Me.results(0),System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.Detalles))
            End Get
        End Property
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")>  _
    Partial Public Class ObtenerTfnoCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Public Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        Public ReadOnly Property Result() As ServiceReference1.telefono
            Get
                MyBase.RaiseExceptionIfNecessary
                Return CType(Me.results(0),ServiceReference1.telefono)
            End Get
        End Property
    End Class
    
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")>  _
    Partial Public Class Service1Client
        Inherits System.ServiceModel.ClientBase(Of ServiceReference1.IService1)
        Implements ServiceReference1.IService1
        
        Private onBeginObtenerTfnosDelegate As BeginOperationDelegate
        
        Private onEndObtenerTfnosDelegate As EndOperationDelegate
        
        Private onObtenerTfnosCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginObtenerTfnoDelegate As BeginOperationDelegate
        
        Private onEndObtenerTfnoDelegate As EndOperationDelegate
        
        Private onObtenerTfnoCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginActualizarTfnoDelegate As BeginOperationDelegate
        
        Private onEndActualizarTfnoDelegate As EndOperationDelegate
        
        Private onActualizarTfnoCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginAgregarTfnoDelegate As BeginOperationDelegate
        
        Private onEndAgregarTfnoDelegate As EndOperationDelegate
        
        Private onAgregarTfnoCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginBorrarTfnoDelegate As BeginOperationDelegate
        
        Private onEndBorrarTfnoDelegate As EndOperationDelegate
        
        Private onBorrarTfnoCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginOpenDelegate As BeginOperationDelegate
        
        Private onEndOpenDelegate As EndOperationDelegate
        
        Private onOpenCompletedDelegate As System.Threading.SendOrPostCallback
        
        Private onBeginCloseDelegate As BeginOperationDelegate
        
        Private onEndCloseDelegate As EndOperationDelegate
        
        Private onCloseCompletedDelegate As System.Threading.SendOrPostCallback
        
        Public Sub New()
            MyBase.New
        End Sub
        
        Public Sub New(ByVal endpointConfigurationName As String)
            MyBase.New(endpointConfigurationName)
        End Sub
        
        Public Sub New(ByVal endpointConfigurationName As String, ByVal remoteAddress As String)
            MyBase.New(endpointConfigurationName, remoteAddress)
        End Sub
        
        Public Sub New(ByVal endpointConfigurationName As String, ByVal remoteAddress As System.ServiceModel.EndpointAddress)
            MyBase.New(endpointConfigurationName, remoteAddress)
        End Sub
        
        Public Sub New(ByVal binding As System.ServiceModel.Channels.Binding, ByVal remoteAddress As System.ServiceModel.EndpointAddress)
            MyBase.New(binding, remoteAddress)
        End Sub
        
        Public Property CookieContainer() As System.Net.CookieContainer
            Get
                Dim httpCookieContainerManager As System.ServiceModel.Channels.IHttpCookieContainerManager = Me.InnerChannel.GetProperty(Of System.ServiceModel.Channels.IHttpCookieContainerManager)
                If (Not (httpCookieContainerManager) Is Nothing) Then
                    Return httpCookieContainerManager.CookieContainer
                Else
                    Return Nothing
                End If
            End Get
            Set
                Dim httpCookieContainerManager As System.ServiceModel.Channels.IHttpCookieContainerManager = Me.InnerChannel.GetProperty(Of System.ServiceModel.Channels.IHttpCookieContainerManager)
                If (Not (httpCookieContainerManager) Is Nothing) Then
                    httpCookieContainerManager.CookieContainer = value
                Else
                    Throw New System.InvalidOperationException("No se puede establecer el objeto CookieContainer. Asegúrese de que el enlace cont"& _ 
                            "iene un objeto HttpCookieContainerBindingElement.")
                End If
            End Set
        End Property
        
        Public Event ObtenerTfnosCompleted As System.EventHandler(Of ObtenerTfnosCompletedEventArgs)
        
        Public Event ObtenerTfnoCompleted As System.EventHandler(Of ObtenerTfnoCompletedEventArgs)
        
        Public Event ActualizarTfnoCompleted As System.EventHandler(Of System.ComponentModel.AsyncCompletedEventArgs)
        
        Public Event AgregarTfnoCompleted As System.EventHandler(Of System.ComponentModel.AsyncCompletedEventArgs)
        
        Public Event BorrarTfnoCompleted As System.EventHandler(Of System.ComponentModel.AsyncCompletedEventArgs)
        
        Public Event OpenCompleted As System.EventHandler(Of System.ComponentModel.AsyncCompletedEventArgs)
        
        Public Event CloseCompleted As System.EventHandler(Of System.ComponentModel.AsyncCompletedEventArgs)
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function ServiceReference1_IService1_BeginObtenerTfnos(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements ServiceReference1.IService1.BeginObtenerTfnos
            Return MyBase.Channel.BeginObtenerTfnos(callback, asyncState)
        End Function
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function ServiceReference1_IService1_EndObtenerTfnos(ByVal result As System.IAsyncResult) As System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.Detalles) Implements ServiceReference1.IService1.EndObtenerTfnos
            Return MyBase.Channel.EndObtenerTfnos(result)
        End Function
        
        Private Function OnBeginObtenerTfnos(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return CType(Me,ServiceReference1.IService1).BeginObtenerTfnos(callback, asyncState)
        End Function
        
        Private Function OnEndObtenerTfnos(ByVal result As System.IAsyncResult) As Object()
            Dim retVal As System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.Detalles) = CType(Me,ServiceReference1.IService1).EndObtenerTfnos(result)
            Return New Object() {retVal}
        End Function
        
        Private Sub OnObtenerTfnosCompleted(ByVal state As Object)
            If (Not (Me.ObtenerTfnosCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent ObtenerTfnosCompleted(Me, New ObtenerTfnosCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub ObtenerTfnosAsync()
            Me.ObtenerTfnosAsync(Nothing)
        End Sub
        
        Public Overloads Sub ObtenerTfnosAsync(ByVal userState As Object)
            If (Me.onBeginObtenerTfnosDelegate Is Nothing) Then
                Me.onBeginObtenerTfnosDelegate = AddressOf Me.OnBeginObtenerTfnos
            End If
            If (Me.onEndObtenerTfnosDelegate Is Nothing) Then
                Me.onEndObtenerTfnosDelegate = AddressOf Me.OnEndObtenerTfnos
            End If
            If (Me.onObtenerTfnosCompletedDelegate Is Nothing) Then
                Me.onObtenerTfnosCompletedDelegate = AddressOf Me.OnObtenerTfnosCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginObtenerTfnosDelegate, Nothing, Me.onEndObtenerTfnosDelegate, Me.onObtenerTfnosCompletedDelegate, userState)
        End Sub
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function ServiceReference1_IService1_BeginObtenerTfno(ByVal tf As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements ServiceReference1.IService1.BeginObtenerTfno
            Return MyBase.Channel.BeginObtenerTfno(tf, callback, asyncState)
        End Function
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function ServiceReference1_IService1_EndObtenerTfno(ByVal result As System.IAsyncResult) As ServiceReference1.telefono Implements ServiceReference1.IService1.EndObtenerTfno
            Return MyBase.Channel.EndObtenerTfno(result)
        End Function
        
        Private Function OnBeginObtenerTfno(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Dim tf As String = CType(inValues(0),String)
            Return CType(Me,ServiceReference1.IService1).BeginObtenerTfno(tf, callback, asyncState)
        End Function
        
        Private Function OnEndObtenerTfno(ByVal result As System.IAsyncResult) As Object()
            Dim retVal As ServiceReference1.telefono = CType(Me,ServiceReference1.IService1).EndObtenerTfno(result)
            Return New Object() {retVal}
        End Function
        
        Private Sub OnObtenerTfnoCompleted(ByVal state As Object)
            If (Not (Me.ObtenerTfnoCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent ObtenerTfnoCompleted(Me, New ObtenerTfnoCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub ObtenerTfnoAsync(ByVal tf As String)
            Me.ObtenerTfnoAsync(tf, Nothing)
        End Sub
        
        Public Overloads Sub ObtenerTfnoAsync(ByVal tf As String, ByVal userState As Object)
            If (Me.onBeginObtenerTfnoDelegate Is Nothing) Then
                Me.onBeginObtenerTfnoDelegate = AddressOf Me.OnBeginObtenerTfno
            End If
            If (Me.onEndObtenerTfnoDelegate Is Nothing) Then
                Me.onEndObtenerTfnoDelegate = AddressOf Me.OnEndObtenerTfno
            End If
            If (Me.onObtenerTfnoCompletedDelegate Is Nothing) Then
                Me.onObtenerTfnoCompletedDelegate = AddressOf Me.OnObtenerTfnoCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginObtenerTfnoDelegate, New Object() {tf}, Me.onEndObtenerTfnoDelegate, Me.onObtenerTfnoCompletedDelegate, userState)
        End Sub
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function ServiceReference1_IService1_BeginActualizarTfno(ByVal entidad As ServiceReference1.telefono, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements ServiceReference1.IService1.BeginActualizarTfno
            Return MyBase.Channel.BeginActualizarTfno(entidad, callback, asyncState)
        End Function
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Sub ServiceReference1_IService1_EndActualizarTfno(ByVal result As System.IAsyncResult) Implements ServiceReference1.IService1.EndActualizarTfno
            MyBase.Channel.EndActualizarTfno(result)
        End Sub
        
        Private Function OnBeginActualizarTfno(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Dim entidad As ServiceReference1.telefono = CType(inValues(0),ServiceReference1.telefono)
            Return CType(Me,ServiceReference1.IService1).BeginActualizarTfno(entidad, callback, asyncState)
        End Function
        
        Private Function OnEndActualizarTfno(ByVal result As System.IAsyncResult) As Object()
            CType(Me,ServiceReference1.IService1).EndActualizarTfno(result)
            Return Nothing
        End Function
        
        Private Sub OnActualizarTfnoCompleted(ByVal state As Object)
            If (Not (Me.ActualizarTfnoCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent ActualizarTfnoCompleted(Me, New System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub ActualizarTfnoAsync(ByVal entidad As ServiceReference1.telefono)
            Me.ActualizarTfnoAsync(entidad, Nothing)
        End Sub
        
        Public Overloads Sub ActualizarTfnoAsync(ByVal entidad As ServiceReference1.telefono, ByVal userState As Object)
            If (Me.onBeginActualizarTfnoDelegate Is Nothing) Then
                Me.onBeginActualizarTfnoDelegate = AddressOf Me.OnBeginActualizarTfno
            End If
            If (Me.onEndActualizarTfnoDelegate Is Nothing) Then
                Me.onEndActualizarTfnoDelegate = AddressOf Me.OnEndActualizarTfno
            End If
            If (Me.onActualizarTfnoCompletedDelegate Is Nothing) Then
                Me.onActualizarTfnoCompletedDelegate = AddressOf Me.OnActualizarTfnoCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginActualizarTfnoDelegate, New Object() {entidad}, Me.onEndActualizarTfnoDelegate, Me.onActualizarTfnoCompletedDelegate, userState)
        End Sub
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function ServiceReference1_IService1_BeginAgregarTfno(ByVal entidad As ServiceReference1.telefono, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements ServiceReference1.IService1.BeginAgregarTfno
            Return MyBase.Channel.BeginAgregarTfno(entidad, callback, asyncState)
        End Function
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Sub ServiceReference1_IService1_EndAgregarTfno(ByVal result As System.IAsyncResult) Implements ServiceReference1.IService1.EndAgregarTfno
            MyBase.Channel.EndAgregarTfno(result)
        End Sub
        
        Private Function OnBeginAgregarTfno(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Dim entidad As ServiceReference1.telefono = CType(inValues(0),ServiceReference1.telefono)
            Return CType(Me,ServiceReference1.IService1).BeginAgregarTfno(entidad, callback, asyncState)
        End Function
        
        Private Function OnEndAgregarTfno(ByVal result As System.IAsyncResult) As Object()
            CType(Me,ServiceReference1.IService1).EndAgregarTfno(result)
            Return Nothing
        End Function
        
        Private Sub OnAgregarTfnoCompleted(ByVal state As Object)
            If (Not (Me.AgregarTfnoCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent AgregarTfnoCompleted(Me, New System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub AgregarTfnoAsync(ByVal entidad As ServiceReference1.telefono)
            Me.AgregarTfnoAsync(entidad, Nothing)
        End Sub
        
        Public Overloads Sub AgregarTfnoAsync(ByVal entidad As ServiceReference1.telefono, ByVal userState As Object)
            If (Me.onBeginAgregarTfnoDelegate Is Nothing) Then
                Me.onBeginAgregarTfnoDelegate = AddressOf Me.OnBeginAgregarTfno
            End If
            If (Me.onEndAgregarTfnoDelegate Is Nothing) Then
                Me.onEndAgregarTfnoDelegate = AddressOf Me.OnEndAgregarTfno
            End If
            If (Me.onAgregarTfnoCompletedDelegate Is Nothing) Then
                Me.onAgregarTfnoCompletedDelegate = AddressOf Me.OnAgregarTfnoCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginAgregarTfnoDelegate, New Object() {entidad}, Me.onEndAgregarTfnoDelegate, Me.onAgregarTfnoCompletedDelegate, userState)
        End Sub
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Function ServiceReference1_IService1_BeginBorrarTfno(ByVal entidad As ServiceReference1.telefono, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements ServiceReference1.IService1.BeginBorrarTfno
            Return MyBase.Channel.BeginBorrarTfno(entidad, callback, asyncState)
        End Function
        
        <System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Sub ServiceReference1_IService1_EndBorrarTfno(ByVal result As System.IAsyncResult) Implements ServiceReference1.IService1.EndBorrarTfno
            MyBase.Channel.EndBorrarTfno(result)
        End Sub
        
        Private Function OnBeginBorrarTfno(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Dim entidad As ServiceReference1.telefono = CType(inValues(0),ServiceReference1.telefono)
            Return CType(Me,ServiceReference1.IService1).BeginBorrarTfno(entidad, callback, asyncState)
        End Function
        
        Private Function OnEndBorrarTfno(ByVal result As System.IAsyncResult) As Object()
            CType(Me,ServiceReference1.IService1).EndBorrarTfno(result)
            Return Nothing
        End Function
        
        Private Sub OnBorrarTfnoCompleted(ByVal state As Object)
            If (Not (Me.BorrarTfnoCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent BorrarTfnoCompleted(Me, New System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub BorrarTfnoAsync(ByVal entidad As ServiceReference1.telefono)
            Me.BorrarTfnoAsync(entidad, Nothing)
        End Sub
        
        Public Overloads Sub BorrarTfnoAsync(ByVal entidad As ServiceReference1.telefono, ByVal userState As Object)
            If (Me.onBeginBorrarTfnoDelegate Is Nothing) Then
                Me.onBeginBorrarTfnoDelegate = AddressOf Me.OnBeginBorrarTfno
            End If
            If (Me.onEndBorrarTfnoDelegate Is Nothing) Then
                Me.onEndBorrarTfnoDelegate = AddressOf Me.OnEndBorrarTfno
            End If
            If (Me.onBorrarTfnoCompletedDelegate Is Nothing) Then
                Me.onBorrarTfnoCompletedDelegate = AddressOf Me.OnBorrarTfnoCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginBorrarTfnoDelegate, New Object() {entidad}, Me.onEndBorrarTfnoDelegate, Me.onBorrarTfnoCompletedDelegate, userState)
        End Sub
        
        Private Function OnBeginOpen(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return CType(Me,System.ServiceModel.ICommunicationObject).BeginOpen(callback, asyncState)
        End Function
        
        Private Function OnEndOpen(ByVal result As System.IAsyncResult) As Object()
            CType(Me,System.ServiceModel.ICommunicationObject).EndOpen(result)
            Return Nothing
        End Function
        
        Private Sub OnOpenCompleted(ByVal state As Object)
            If (Not (Me.OpenCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent OpenCompleted(Me, New System.ComponentModel.AsyncCompletedEventArgs(e.[Error], e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub OpenAsync()
            Me.OpenAsync(Nothing)
        End Sub
        
        Public Overloads Sub OpenAsync(ByVal userState As Object)
            If (Me.onBeginOpenDelegate Is Nothing) Then
                Me.onBeginOpenDelegate = AddressOf Me.OnBeginOpen
            End If
            If (Me.onEndOpenDelegate Is Nothing) Then
                Me.onEndOpenDelegate = AddressOf Me.OnEndOpen
            End If
            If (Me.onOpenCompletedDelegate Is Nothing) Then
                Me.onOpenCompletedDelegate = AddressOf Me.OnOpenCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginOpenDelegate, Nothing, Me.onEndOpenDelegate, Me.onOpenCompletedDelegate, userState)
        End Sub
        
        Private Function OnBeginClose(ByVal inValues() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return CType(Me,System.ServiceModel.ICommunicationObject).BeginClose(callback, asyncState)
        End Function
        
        Private Function OnEndClose(ByVal result As System.IAsyncResult) As Object()
            CType(Me,System.ServiceModel.ICommunicationObject).EndClose(result)
            Return Nothing
        End Function
        
        Private Sub OnCloseCompleted(ByVal state As Object)
            If (Not (Me.CloseCompletedEvent) Is Nothing) Then
                Dim e As InvokeAsyncCompletedEventArgs = CType(state,InvokeAsyncCompletedEventArgs)
                RaiseEvent CloseCompleted(Me, New System.ComponentModel.AsyncCompletedEventArgs(e.[Error], e.Cancelled, e.UserState))
            End If
        End Sub
        
        Public Overloads Sub CloseAsync()
            Me.CloseAsync(Nothing)
        End Sub
        
        Public Overloads Sub CloseAsync(ByVal userState As Object)
            If (Me.onBeginCloseDelegate Is Nothing) Then
                Me.onBeginCloseDelegate = AddressOf Me.OnBeginClose
            End If
            If (Me.onEndCloseDelegate Is Nothing) Then
                Me.onEndCloseDelegate = AddressOf Me.OnEndClose
            End If
            If (Me.onCloseCompletedDelegate Is Nothing) Then
                Me.onCloseCompletedDelegate = AddressOf Me.OnCloseCompleted
            End If
            MyBase.InvokeAsync(Me.onBeginCloseDelegate, Nothing, Me.onEndCloseDelegate, Me.onCloseCompletedDelegate, userState)
        End Sub
        
        Protected Overrides Function CreateChannel() As ServiceReference1.IService1
            Return New Service1ClientChannel(Me)
        End Function
        
        Private Class Service1ClientChannel
            Inherits ChannelBase(Of ServiceReference1.IService1)
            Implements ServiceReference1.IService1
            
            Public Sub New(ByVal client As System.ServiceModel.ClientBase(Of ServiceReference1.IService1))
                MyBase.New(client)
            End Sub
            
            Public Function BeginObtenerTfnos(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements ServiceReference1.IService1.BeginObtenerTfnos
                Dim _args((0) - 1) As Object
                Dim _result As System.IAsyncResult = MyBase.BeginInvoke("ObtenerTfnos", _args, callback, asyncState)
                Return _result
            End Function
            
            Public Function EndObtenerTfnos(ByVal result As System.IAsyncResult) As System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.Detalles) Implements ServiceReference1.IService1.EndObtenerTfnos
                Dim _args((0) - 1) As Object
                Dim _result As System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.Detalles) = CType(MyBase.EndInvoke("ObtenerTfnos", _args, result),System.Collections.ObjectModel.ObservableCollection(Of ServiceReference1.Detalles))
                Return _result
            End Function
            
            Public Function BeginObtenerTfno(ByVal tf As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements ServiceReference1.IService1.BeginObtenerTfno
                Dim _args((1) - 1) As Object
                _args(0) = tf
                Dim _result As System.IAsyncResult = MyBase.BeginInvoke("ObtenerTfno", _args, callback, asyncState)
                Return _result
            End Function
            
            Public Function EndObtenerTfno(ByVal result As System.IAsyncResult) As ServiceReference1.telefono Implements ServiceReference1.IService1.EndObtenerTfno
                Dim _args((0) - 1) As Object
                Dim _result As ServiceReference1.telefono = CType(MyBase.EndInvoke("ObtenerTfno", _args, result),ServiceReference1.telefono)
                Return _result
            End Function
            
            Public Function BeginActualizarTfno(ByVal entidad As ServiceReference1.telefono, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements ServiceReference1.IService1.BeginActualizarTfno
                Dim _args((1) - 1) As Object
                _args(0) = entidad
                Dim _result As System.IAsyncResult = MyBase.BeginInvoke("ActualizarTfno", _args, callback, asyncState)
                Return _result
            End Function
            
            Public Sub EndActualizarTfno(ByVal result As System.IAsyncResult) Implements ServiceReference1.IService1.EndActualizarTfno
                Dim _args((0) - 1) As Object
                MyBase.EndInvoke("ActualizarTfno", _args, result)
            End Sub
            
            Public Function BeginAgregarTfno(ByVal entidad As ServiceReference1.telefono, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements ServiceReference1.IService1.BeginAgregarTfno
                Dim _args((1) - 1) As Object
                _args(0) = entidad
                Dim _result As System.IAsyncResult = MyBase.BeginInvoke("AgregarTfno", _args, callback, asyncState)
                Return _result
            End Function
            
            Public Sub EndAgregarTfno(ByVal result As System.IAsyncResult) Implements ServiceReference1.IService1.EndAgregarTfno
                Dim _args((0) - 1) As Object
                MyBase.EndInvoke("AgregarTfno", _args, result)
            End Sub
            
            Public Function BeginBorrarTfno(ByVal entidad As ServiceReference1.telefono, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Implements ServiceReference1.IService1.BeginBorrarTfno
                Dim _args((1) - 1) As Object
                _args(0) = entidad
                Dim _result As System.IAsyncResult = MyBase.BeginInvoke("BorrarTfno", _args, callback, asyncState)
                Return _result
            End Function
            
            Public Sub EndBorrarTfno(ByVal result As System.IAsyncResult) Implements ServiceReference1.IService1.EndBorrarTfno
                Dim _args((0) - 1) As Object
                MyBase.EndInvoke("BorrarTfno", _args, result)
            End Sub
        End Class
    End Class
End Namespace
