LightSwitch HTML Client Tutorial - Contoso Moving

This tutorial walks through building out the mobile client used by Contoso Movers’ planning specialists. This sample was created for Visual Studio 2012, but it will also upgrade and run in Visual Studio 2013.

VB.NET (6.3 MB)
 
 
 
 
 
4.5 Star
(13)
16,363 times
Add to favorites
12/6/2013
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

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

Option Strict On
Option Explicit On

Imports __Home = LightSwitchApplication.Home
Imports __SearchAppointments = LightSwitchApplication.SearchAppointments
Imports __SearchCustomers = LightSwitchApplication.SearchCustomers
Imports __SearchEmployees = LightSwitchApplication.SearchEmployees
Imports __CustomerDetail = LightSwitchApplication.CustomerDetail
Imports __EmployeeDetail = LightSwitchApplication.EmployeeDetail
Imports __CreateNewAppointment = LightSwitchApplication.CreateNewAppointment
Imports __CreateNewCustomer = LightSwitchApplication.CreateNewCustomer
Imports __CreateNewEmployee = LightSwitchApplication.CreateNewEmployee
Imports __CreateSampleData = LightSwitchApplication.CreateSampleData
Imports __AppointmentDetail = LightSwitchApplication.AppointmentDetail
Imports __RoomDetail = LightSwitchApplication.RoomDetail

Namespace LightSwitchApplication

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class Home
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __Home, __Home.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New()
            MyBase.New("LightSwitchApplication:Home")
            __Home.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance() As Home
            Return New __Home( _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Home_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Home_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Home_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Home_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Home_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Home_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Home_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub UpcomingAppointmentsForAllEmployees_SelectionChanged()
        End Sub

        Partial Private Sub UpcomingAppointmentsForAllEmployees_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub UpcomingAppointmentsForAllEmployees_Loaded(ByVal succeeded As Boolean)
        End Sub

        ''' <summary>
        ''' Gets the UpcomingAppointmentsForAllEmployees visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property UpcomingAppointmentsForAllEmployees As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Appointment)
            Get
                Return __Home.DetailsClass.GetValue(Me, __Home.DetailsClass.PropertySetProperties.UpcomingAppointmentsForAllEmployees)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub UpcomingAppointmentsForAllEmployees_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Calls the NewAppointment screen method.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub NewAppointment()
            Me.Details.Methods.NewAppointment.CreateInvocation().Execute()
        End Sub
        Partial Private Sub NewAppointment_CanExecute(ByRef result As Boolean)
        End Sub
        Partial Private Sub NewAppointment_Execute()
        End Sub

        ''' <summary>
        ''' Calls the NewCustomer screen method.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub NewCustomer()
            Me.Details.Methods.NewCustomer.CreateInvocation().Execute()
        End Sub
        Partial Private Sub NewCustomer_CanExecute(ByRef result As Boolean)
        End Sub
        Partial Private Sub NewCustomer_Execute()
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __Home, __Home.DetailsClass, __Home.DetailsClass.PropertySet, __Home.DetailsClass.CommandSet, __Home.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __Home.DetailsClass.PropertySetProperties.UpcomingAppointmentsForAllEmployees
                Dim initializeCommandEntry = __Home.DetailsClass.CommandSetProperties.NewAppointment
                Dim initializeMethodEntry = __Home.DetailsClass.MethodSetProperties.NewAppointment
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __HomeEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __Home, __Home.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __Home, __Home.DetailsClass).Entry( _
                    AddressOf __Home.DetailsClass.__Home_InvokeInitializeDataWorkspace,
                    AddressOf __Home.DetailsClass.__Home_InvokeSavingEvent,
                    AddressOf __Home.DetailsClass.__Home_InvokeSavedEvent,
                    AddressOf __Home.DetailsClass.__Home_InvokeClosingEvent,
                    AddressOf __Home.DetailsClass.__Home_InvokeCreated,
                    AddressOf __Home.DetailsClass.__Home_InvokeActivated,
                    AddressOf __Home.DetailsClass.__Home_InvokeSaveErrorEvent)
            Private Shared Sub __Home_InvokeInitializeDataWorkspace(s As __Home, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.Home_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __Home_InvokeSavingEvent(s As __Home) As Boolean
                Dim handled = False
                s.Home_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __Home_InvokeSavedEvent(s As __Home)
                s.Home_Saved()
            End Sub
            Private Shared Function __Home_InvokeClosingEvent(s As __Home) As Boolean
                Dim cancel = False
                s.Home_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __Home_InvokeCreated(s As __Home)
                s.Home_Created()
            End Sub
            Private Shared Sub __Home_InvokeActivated(s As __Home)
                s.Home_Activated()
            End Sub
            Private Shared Function __Home_InvokeSaveErrorEvent(s As __Home, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.Home_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __Home.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __Home.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __Home.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            Private Function UpcomingAppointmentsForAllEmployeesQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                    Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                        Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                            Me.Screen.DataWorkspace.ApplicationData.UpcomingAppointmentsForAllEmployees(),
                            "State"),
                        "Employee"),
                    "Customer")
            End Function

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _UpcomingAppointmentsForAllEmployees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __Home, __Home.DetailsClass, Global.LightSwitchApplication.Appointment).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _NewAppointmentCommand As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __Home, __Home.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _NewCustomerCommand As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __Home, __Home.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _NewAppointmentMethod As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __Home, __Home.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _NewCustomerMethod As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __Home, __Home.DetailsClass).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __Home, __Home.DetailsClass)

                Public ReadOnly Property UpcomingAppointmentsForAllEmployees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __Home, __Home.DetailsClass, Global.LightSwitchApplication.Appointment)
                    Get
                        Return DirectCast(MyBase.GetItem(__Home.DetailsClass.PropertySetProperties.UpcomingAppointmentsForAllEmployees), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __Home, __Home.DetailsClass, Global.LightSwitchApplication.Appointment))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __Home, __Home.DetailsClass)

                Public ReadOnly Property NewAppointment As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __Home, __Home.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__Home.DetailsClass.CommandSetProperties.NewAppointment), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __Home, __Home.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property NewCustomer As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __Home, __Home.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__Home.DetailsClass.CommandSetProperties.NewCustomer), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __Home, __Home.DetailsClass))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __Home, __Home.DetailsClass)

                Public ReadOnly Property NewAppointment As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __Home, __Home.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__Home.DetailsClass.MethodSetProperties.NewAppointment), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __Home, __Home.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property NewCustomer As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __Home, __Home.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__Home.DetailsClass.MethodSetProperties.NewCustomer), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __Home, __Home.DetailsClass))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly UpcomingAppointmentsForAllEmployees As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __Home, __Home.DetailsClass, Global.LightSwitchApplication.Appointment).Entry( _
                    "UpcomingAppointmentsForAllEmployees",
                    AddressOf __Home.DetailsClass.PropertySetProperties._UpcomingAppointmentsForAllEmployees_Stub,
                    AddressOf __Home.DetailsClass.PropertySetProperties._UpcomingAppointmentsForAllEmployees_Validate,
                    AddressOf __Home.DetailsClass.PropertySetProperties._UpcomingAppointmentsForAllEmployees_CreateQuery,
                    AddressOf __Home.DetailsClass.PropertySetProperties._UpcomingAppointmentsForAllEmployees_SelectionChanged,
                    AddressOf __Home.DetailsClass.PropertySetProperties._UpcomingAppointmentsForAllEmployees_OnCollectionChanged,
                    AddressOf __Home.DetailsClass.PropertySetProperties._UpcomingAppointmentsForAllEmployees_OnLoaded)
                Private Shared Sub _UpcomingAppointmentsForAllEmployees_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Home.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __Home, __Home.DetailsClass, Global.LightSwitchApplication.Appointment).Data), d As __Home.DetailsClass, sf As Object)
                    c(d, d._UpcomingAppointmentsForAllEmployees, sf)
                End Sub
                Private Shared Sub _UpcomingAppointmentsForAllEmployees_Validate(s As __Home, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.UpcomingAppointmentsForAllEmployees_Validate(r)
                End Sub
                Private Shared Function _UpcomingAppointmentsForAllEmployees_CreateQuery(d As __Home.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.UpcomingAppointmentsForAllEmployeesQuery()
                End Function
                Private Shared Sub _UpcomingAppointmentsForAllEmployees_SelectionChanged(s As __Home)
                    s.UpcomingAppointmentsForAllEmployees_SelectionChanged()
                End Sub
                Private Shared Sub _UpcomingAppointmentsForAllEmployees_OnCollectionChanged(s As __Home, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.UpcomingAppointmentsForAllEmployees_Changed(e)
                End Sub
                Private Shared Sub _UpcomingAppointmentsForAllEmployees_OnLoaded(s As __Home, succeeded As Boolean)
                    s.UpcomingAppointmentsForAllEmployees_Loaded(succeeded)
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties

                Public Shared ReadOnly NewAppointment As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __Home, __Home.DetailsClass).Entry( _
                    "NewAppointment",
                    AddressOf __Home.DetailsClass.CommandSetProperties._NewAppointment_Stub,
                    AddressOf __Home.DetailsClass.CommandSetProperties._NewAppointment_CreateExecutableObject)
                Private Shared Sub _NewAppointment_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Home.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __Home, __Home.DetailsClass).Data), d As __Home.DetailsClass, sf As Object)
                    c(d, d._NewAppointmentCommand, sf)
                End Sub
                Private Shared Function _NewAppointment_CreateExecutableObject(d As __Home.DetailsClass) As Global.Microsoft.LightSwitch.IExecutable
                    Return DirectCast(d, __Home.DetailsClass).Methods.NewAppointment.CreateInvocation()
                End Function

                Public Shared ReadOnly NewCustomer As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __Home, __Home.DetailsClass).Entry( _
                    "NewCustomer",
                    AddressOf __Home.DetailsClass.CommandSetProperties._NewCustomer_Stub,
                    AddressOf __Home.DetailsClass.CommandSetProperties._NewCustomer_CreateExecutableObject)
                Private Shared Sub _NewCustomer_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Home.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __Home, __Home.DetailsClass).Data), d As __Home.DetailsClass, sf As Object)
                    c(d, d._NewCustomerCommand, sf)
                End Sub
                Private Shared Function _NewCustomer_CreateExecutableObject(d As __Home.DetailsClass) As Global.Microsoft.LightSwitch.IExecutable
                    Return DirectCast(d, __Home.DetailsClass).Methods.NewCustomer.CreateInvocation()
                End Function

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties

                Public Shared ReadOnly NewAppointment As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __Home, __Home.DetailsClass).Entry( _
                    "NewAppointment",
                    AddressOf __Home.DetailsClass.MethodSetProperties._NewAppointment_Stub,
                    AddressOf __Home.DetailsClass.MethodSetProperties._NewAppointment_CanInvoke,
                    AddressOf __Home.DetailsClass.MethodSetProperties._NewAppointment_InvokeMethod)
                Private Shared Sub _NewAppointment_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Home.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __Home, __Home.DetailsClass).Data), d As __Home.DetailsClass, sf As Object)
                    c(d, d._NewAppointmentMethod, sf)
                End Sub
                Private Shared Function _NewAppointment_CanInvoke(d As __Home.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object), ex As Global.System.Exception) As Global.System.Exception
                    Dim result = True
                    d.Screen.NewAppointment_CanExecute(result)
                    Return If(result, Nothing, ex)
                End Function
                Private Shared Sub _NewAppointment_InvokeMethod(d As __Home.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object))
                    d.Screen.NewAppointment_Execute()
                End Sub

                Public Shared ReadOnly NewCustomer As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __Home, __Home.DetailsClass).Entry( _
                    "NewCustomer",
                    AddressOf __Home.DetailsClass.MethodSetProperties._NewCustomer_Stub,
                    AddressOf __Home.DetailsClass.MethodSetProperties._NewCustomer_CanInvoke,
                    AddressOf __Home.DetailsClass.MethodSetProperties._NewCustomer_InvokeMethod)
                Private Shared Sub _NewCustomer_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Home.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __Home, __Home.DetailsClass).Data), d As __Home.DetailsClass, sf As Object)
                    c(d, d._NewCustomerMethod, sf)
                End Sub
                Private Shared Function _NewCustomer_CanInvoke(d As __Home.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object), ex As Global.System.Exception) As Global.System.Exception
                    Dim result = True
                    d.Screen.NewCustomer_CanExecute(result)
                    Return If(result, Nothing, ex)
                End Function
                Private Shared Sub _NewCustomer_InvokeMethod(d As __Home.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object))
                    d.Screen.NewCustomer_Execute()
                End Sub

            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class SearchAppointments
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __SearchAppointments, __SearchAppointments.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New()
            MyBase.New("LightSwitchApplication:SearchAppointments")
            __SearchAppointments.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance() As SearchAppointments
            Return New __SearchAppointments( _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchAppointments_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchAppointments_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchAppointments_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchAppointments_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchAppointments_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchAppointments_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchAppointments_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub Appointments_SelectionChanged()
        End Sub

        Partial Private Sub Appointments_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointments_Loaded(ByVal succeeded As Boolean)
        End Sub

        ''' <summary>
        ''' Gets the Appointments visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Appointments As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Appointment)
            Get
                Return __SearchAppointments.DetailsClass.GetValue(Me, __SearchAppointments.DetailsClass.PropertySetProperties.Appointments)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointments_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __SearchAppointments, __SearchAppointments.DetailsClass, __SearchAppointments.DetailsClass.PropertySet, __SearchAppointments.DetailsClass.CommandSet, __SearchAppointments.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __SearchAppointments.DetailsClass.PropertySetProperties.Appointments
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __SearchAppointmentsEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __SearchAppointments, __SearchAppointments.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __SearchAppointments, __SearchAppointments.DetailsClass).Entry( _
                    AddressOf __SearchAppointments.DetailsClass.__SearchAppointments_InvokeInitializeDataWorkspace,
                    AddressOf __SearchAppointments.DetailsClass.__SearchAppointments_InvokeSavingEvent,
                    AddressOf __SearchAppointments.DetailsClass.__SearchAppointments_InvokeSavedEvent,
                    AddressOf __SearchAppointments.DetailsClass.__SearchAppointments_InvokeClosingEvent,
                    AddressOf __SearchAppointments.DetailsClass.__SearchAppointments_InvokeCreated,
                    AddressOf __SearchAppointments.DetailsClass.__SearchAppointments_InvokeActivated,
                    AddressOf __SearchAppointments.DetailsClass.__SearchAppointments_InvokeSaveErrorEvent)
            Private Shared Sub __SearchAppointments_InvokeInitializeDataWorkspace(s As __SearchAppointments, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.SearchAppointments_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __SearchAppointments_InvokeSavingEvent(s As __SearchAppointments) As Boolean
                Dim handled = False
                s.SearchAppointments_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __SearchAppointments_InvokeSavedEvent(s As __SearchAppointments)
                s.SearchAppointments_Saved()
            End Sub
            Private Shared Function __SearchAppointments_InvokeClosingEvent(s As __SearchAppointments) As Boolean
                Dim cancel = False
                s.SearchAppointments_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __SearchAppointments_InvokeCreated(s As __SearchAppointments)
                s.SearchAppointments_Created()
            End Sub
            Private Shared Sub __SearchAppointments_InvokeActivated(s As __SearchAppointments)
                s.SearchAppointments_Activated()
            End Sub
            Private Shared Function __SearchAppointments_InvokeSaveErrorEvent(s As __SearchAppointments, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.SearchAppointments_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __SearchAppointments.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __SearchAppointments.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __SearchAppointments.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            Private Function AppointmentsQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                    Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                        Me.Screen.DataWorkspace.ApplicationData.Appointments,
                        "Employee"),
                    "State")
            End Function

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Appointments As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchAppointments, __SearchAppointments.DetailsClass, Global.LightSwitchApplication.Appointment).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __SearchAppointments, __SearchAppointments.DetailsClass)

                Public ReadOnly Property Appointments As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchAppointments, __SearchAppointments.DetailsClass, Global.LightSwitchApplication.Appointment)
                    Get
                        Return DirectCast(MyBase.GetItem(__SearchAppointments.DetailsClass.PropertySetProperties.Appointments), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchAppointments, __SearchAppointments.DetailsClass, Global.LightSwitchApplication.Appointment))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __SearchAppointments, __SearchAppointments.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __SearchAppointments, __SearchAppointments.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly Appointments As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchAppointments, __SearchAppointments.DetailsClass, Global.LightSwitchApplication.Appointment).Entry( _
                    "Appointments",
                    AddressOf __SearchAppointments.DetailsClass.PropertySetProperties._Appointments_Stub,
                    AddressOf __SearchAppointments.DetailsClass.PropertySetProperties._Appointments_Validate,
                    AddressOf __SearchAppointments.DetailsClass.PropertySetProperties._Appointments_CreateQuery,
                    AddressOf __SearchAppointments.DetailsClass.PropertySetProperties._Appointments_SelectionChanged,
                    AddressOf __SearchAppointments.DetailsClass.PropertySetProperties._Appointments_OnCollectionChanged,
                    AddressOf __SearchAppointments.DetailsClass.PropertySetProperties._Appointments_OnLoaded)
                Private Shared Sub _Appointments_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __SearchAppointments.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchAppointments, __SearchAppointments.DetailsClass, Global.LightSwitchApplication.Appointment).Data), d As __SearchAppointments.DetailsClass, sf As Object)
                    c(d, d._Appointments, sf)
                End Sub
                Private Shared Sub _Appointments_Validate(s As __SearchAppointments, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Appointments_Validate(r)
                End Sub
                Private Shared Function _Appointments_CreateQuery(d As __SearchAppointments.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.AppointmentsQuery()
                End Function
                Private Shared Sub _Appointments_SelectionChanged(s As __SearchAppointments)
                    s.Appointments_SelectionChanged()
                End Sub
                Private Shared Sub _Appointments_OnCollectionChanged(s As __SearchAppointments, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.Appointments_Changed(e)
                End Sub
                Private Shared Sub _Appointments_OnLoaded(s As __SearchAppointments, succeeded As Boolean)
                    s.Appointments_Loaded(succeeded)
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties
            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class SearchCustomers
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __SearchCustomers, __SearchCustomers.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New()
            MyBase.New("LightSwitchApplication:SearchCustomers")
            __SearchCustomers.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance() As SearchCustomers
            Return New __SearchCustomers( _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchCustomers_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchCustomers_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchCustomers_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchCustomers_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchCustomers_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchCustomers_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchCustomers_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub Customers_SelectionChanged()
        End Sub

        Partial Private Sub Customers_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customers_Loaded(ByVal succeeded As Boolean)
        End Sub

        ''' <summary>
        ''' Gets the Customers visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Customers As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Customer)
            Get
                Return __SearchCustomers.DetailsClass.GetValue(Me, __SearchCustomers.DetailsClass.PropertySetProperties.Customers)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customers_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __SearchCustomers, __SearchCustomers.DetailsClass, __SearchCustomers.DetailsClass.PropertySet, __SearchCustomers.DetailsClass.CommandSet, __SearchCustomers.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __SearchCustomers.DetailsClass.PropertySetProperties.Customers
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __SearchCustomersEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __SearchCustomers, __SearchCustomers.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __SearchCustomers, __SearchCustomers.DetailsClass).Entry( _
                    AddressOf __SearchCustomers.DetailsClass.__SearchCustomers_InvokeInitializeDataWorkspace,
                    AddressOf __SearchCustomers.DetailsClass.__SearchCustomers_InvokeSavingEvent,
                    AddressOf __SearchCustomers.DetailsClass.__SearchCustomers_InvokeSavedEvent,
                    AddressOf __SearchCustomers.DetailsClass.__SearchCustomers_InvokeClosingEvent,
                    AddressOf __SearchCustomers.DetailsClass.__SearchCustomers_InvokeCreated,
                    AddressOf __SearchCustomers.DetailsClass.__SearchCustomers_InvokeActivated,
                    AddressOf __SearchCustomers.DetailsClass.__SearchCustomers_InvokeSaveErrorEvent)
            Private Shared Sub __SearchCustomers_InvokeInitializeDataWorkspace(s As __SearchCustomers, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.SearchCustomers_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __SearchCustomers_InvokeSavingEvent(s As __SearchCustomers) As Boolean
                Dim handled = False
                s.SearchCustomers_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __SearchCustomers_InvokeSavedEvent(s As __SearchCustomers)
                s.SearchCustomers_Saved()
            End Sub
            Private Shared Function __SearchCustomers_InvokeClosingEvent(s As __SearchCustomers) As Boolean
                Dim cancel = False
                s.SearchCustomers_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __SearchCustomers_InvokeCreated(s As __SearchCustomers)
                s.SearchCustomers_Created()
            End Sub
            Private Shared Sub __SearchCustomers_InvokeActivated(s As __SearchCustomers)
                s.SearchCustomers_Activated()
            End Sub
            Private Shared Function __SearchCustomers_InvokeSaveErrorEvent(s As __SearchCustomers, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.SearchCustomers_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __SearchCustomers.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __SearchCustomers.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __SearchCustomers.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            Private Function CustomersQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                    Me.Screen.DataWorkspace.ApplicationData.Customers,
                    "State")
            End Function

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Customers As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchCustomers, __SearchCustomers.DetailsClass, Global.LightSwitchApplication.Customer).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __SearchCustomers, __SearchCustomers.DetailsClass)

                Public ReadOnly Property Customers As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchCustomers, __SearchCustomers.DetailsClass, Global.LightSwitchApplication.Customer)
                    Get
                        Return DirectCast(MyBase.GetItem(__SearchCustomers.DetailsClass.PropertySetProperties.Customers), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchCustomers, __SearchCustomers.DetailsClass, Global.LightSwitchApplication.Customer))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __SearchCustomers, __SearchCustomers.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __SearchCustomers, __SearchCustomers.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly Customers As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchCustomers, __SearchCustomers.DetailsClass, Global.LightSwitchApplication.Customer).Entry( _
                    "Customers",
                    AddressOf __SearchCustomers.DetailsClass.PropertySetProperties._Customers_Stub,
                    AddressOf __SearchCustomers.DetailsClass.PropertySetProperties._Customers_Validate,
                    AddressOf __SearchCustomers.DetailsClass.PropertySetProperties._Customers_CreateQuery,
                    AddressOf __SearchCustomers.DetailsClass.PropertySetProperties._Customers_SelectionChanged,
                    AddressOf __SearchCustomers.DetailsClass.PropertySetProperties._Customers_OnCollectionChanged,
                    AddressOf __SearchCustomers.DetailsClass.PropertySetProperties._Customers_OnLoaded)
                Private Shared Sub _Customers_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __SearchCustomers.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchCustomers, __SearchCustomers.DetailsClass, Global.LightSwitchApplication.Customer).Data), d As __SearchCustomers.DetailsClass, sf As Object)
                    c(d, d._Customers, sf)
                End Sub
                Private Shared Sub _Customers_Validate(s As __SearchCustomers, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Customers_Validate(r)
                End Sub
                Private Shared Function _Customers_CreateQuery(d As __SearchCustomers.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.CustomersQuery()
                End Function
                Private Shared Sub _Customers_SelectionChanged(s As __SearchCustomers)
                    s.Customers_SelectionChanged()
                End Sub
                Private Shared Sub _Customers_OnCollectionChanged(s As __SearchCustomers, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.Customers_Changed(e)
                End Sub
                Private Shared Sub _Customers_OnLoaded(s As __SearchCustomers, succeeded As Boolean)
                    s.Customers_Loaded(succeeded)
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties
            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class SearchEmployees
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __SearchEmployees, __SearchEmployees.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New()
            MyBase.New("LightSwitchApplication:SearchEmployees")
            __SearchEmployees.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance() As SearchEmployees
            Return New __SearchEmployees( _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchEmployees_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchEmployees_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchEmployees_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchEmployees_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchEmployees_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchEmployees_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub SearchEmployees_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub Employees_SelectionChanged()
        End Sub

        Partial Private Sub Employees_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Employees_Loaded(ByVal succeeded As Boolean)
        End Sub

        ''' <summary>
        ''' Gets the Employees visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Employees As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Employee)
            Get
                Return __SearchEmployees.DetailsClass.GetValue(Me, __SearchEmployees.DetailsClass.PropertySetProperties.Employees)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Employees_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __SearchEmployees, __SearchEmployees.DetailsClass, __SearchEmployees.DetailsClass.PropertySet, __SearchEmployees.DetailsClass.CommandSet, __SearchEmployees.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __SearchEmployees.DetailsClass.PropertySetProperties.Employees
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __SearchEmployeesEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __SearchEmployees, __SearchEmployees.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __SearchEmployees, __SearchEmployees.DetailsClass).Entry( _
                    AddressOf __SearchEmployees.DetailsClass.__SearchEmployees_InvokeInitializeDataWorkspace,
                    AddressOf __SearchEmployees.DetailsClass.__SearchEmployees_InvokeSavingEvent,
                    AddressOf __SearchEmployees.DetailsClass.__SearchEmployees_InvokeSavedEvent,
                    AddressOf __SearchEmployees.DetailsClass.__SearchEmployees_InvokeClosingEvent,
                    AddressOf __SearchEmployees.DetailsClass.__SearchEmployees_InvokeCreated,
                    AddressOf __SearchEmployees.DetailsClass.__SearchEmployees_InvokeActivated,
                    AddressOf __SearchEmployees.DetailsClass.__SearchEmployees_InvokeSaveErrorEvent)
            Private Shared Sub __SearchEmployees_InvokeInitializeDataWorkspace(s As __SearchEmployees, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.SearchEmployees_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __SearchEmployees_InvokeSavingEvent(s As __SearchEmployees) As Boolean
                Dim handled = False
                s.SearchEmployees_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __SearchEmployees_InvokeSavedEvent(s As __SearchEmployees)
                s.SearchEmployees_Saved()
            End Sub
            Private Shared Function __SearchEmployees_InvokeClosingEvent(s As __SearchEmployees) As Boolean
                Dim cancel = False
                s.SearchEmployees_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __SearchEmployees_InvokeCreated(s As __SearchEmployees)
                s.SearchEmployees_Created()
            End Sub
            Private Shared Sub __SearchEmployees_InvokeActivated(s As __SearchEmployees)
                s.SearchEmployees_Activated()
            End Sub
            Private Shared Function __SearchEmployees_InvokeSaveErrorEvent(s As __SearchEmployees, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.SearchEmployees_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __SearchEmployees.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __SearchEmployees.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __SearchEmployees.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            Private Function EmployeesQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Me.Screen.DataWorkspace.ApplicationData.Employees
            End Function

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Employees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchEmployees, __SearchEmployees.DetailsClass, Global.LightSwitchApplication.Employee).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __SearchEmployees, __SearchEmployees.DetailsClass)

                Public ReadOnly Property Employees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchEmployees, __SearchEmployees.DetailsClass, Global.LightSwitchApplication.Employee)
                    Get
                        Return DirectCast(MyBase.GetItem(__SearchEmployees.DetailsClass.PropertySetProperties.Employees), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchEmployees, __SearchEmployees.DetailsClass, Global.LightSwitchApplication.Employee))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __SearchEmployees, __SearchEmployees.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __SearchEmployees, __SearchEmployees.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly Employees As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchEmployees, __SearchEmployees.DetailsClass, Global.LightSwitchApplication.Employee).Entry( _
                    "Employees",
                    AddressOf __SearchEmployees.DetailsClass.PropertySetProperties._Employees_Stub,
                    AddressOf __SearchEmployees.DetailsClass.PropertySetProperties._Employees_Validate,
                    AddressOf __SearchEmployees.DetailsClass.PropertySetProperties._Employees_CreateQuery,
                    AddressOf __SearchEmployees.DetailsClass.PropertySetProperties._Employees_SelectionChanged,
                    AddressOf __SearchEmployees.DetailsClass.PropertySetProperties._Employees_OnCollectionChanged,
                    AddressOf __SearchEmployees.DetailsClass.PropertySetProperties._Employees_OnLoaded)
                Private Shared Sub _Employees_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __SearchEmployees.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __SearchEmployees, __SearchEmployees.DetailsClass, Global.LightSwitchApplication.Employee).Data), d As __SearchEmployees.DetailsClass, sf As Object)
                    c(d, d._Employees, sf)
                End Sub
                Private Shared Sub _Employees_Validate(s As __SearchEmployees, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Employees_Validate(r)
                End Sub
                Private Shared Function _Employees_CreateQuery(d As __SearchEmployees.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.EmployeesQuery()
                End Function
                Private Shared Sub _Employees_SelectionChanged(s As __SearchEmployees)
                    s.Employees_SelectionChanged()
                End Sub
                Private Shared Sub _Employees_OnCollectionChanged(s As __SearchEmployees, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.Employees_Changed(e)
                End Sub
                Private Shared Sub _Employees_OnLoaded(s As __SearchEmployees, succeeded As Boolean)
                    s.Employees_Loaded(succeeded)
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties
            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class CustomerDetail
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __CustomerDetail, __CustomerDetail.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New(ByVal CustomerId As Integer)
            MyBase.New("LightSwitchApplication:CustomerDetail")
                Me.CustomerId = CustomerId
            __CustomerDetail.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance(ByVal CustomerId As Integer) As CustomerDetail
            Return New __CustomerDetail( _
                        CustomerId _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CustomerDetail_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CustomerDetail_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CustomerDetail_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CustomerDetail_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CustomerDetail_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CustomerDetail_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CustomerDetail_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub Customer_Changed()
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customer_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub CustomerId_Changed()
        End Sub

        Partial Private Sub Appointments_SelectionChanged()
        End Sub

        Partial Private Sub Appointments_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointments_Loaded(ByVal succeeded As Boolean)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Customer As Global.LightSwitchApplication.Customer
            Get
                Return __CustomerDetail.DetailsClass.GetValue(Me, __CustomerDetail.DetailsClass.PropertySetProperties.Customer)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customer_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property CustomerId As Integer
            Get
                Return __CustomerDetail.DetailsClass.GetValue(Me, __CustomerDetail.DetailsClass.PropertySetProperties.CustomerId)
            End Get
            Set(ByVal value As Integer)
                __CustomerDetail.DetailsClass.SetValue(Me, __CustomerDetail.DetailsClass.PropertySetProperties.CustomerId, value)
            End Set
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CustomerId_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the Appointments visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Appointments As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Appointment)
            Get
                Return __CustomerDetail.DetailsClass.GetValue(Me, __CustomerDetail.DetailsClass.PropertySetProperties.Appointments)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointments_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Calls the NewAppointment screen method.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub NewAppointment()
            Me.Details.Methods.NewAppointment.CreateInvocation().Execute()
        End Sub
        Partial Private Sub NewAppointment_CanExecute(ByRef result As Boolean)
        End Sub
        Partial Private Sub NewAppointment_Execute()
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CustomerDetail, __CustomerDetail.DetailsClass, __CustomerDetail.DetailsClass.PropertySet, __CustomerDetail.DetailsClass.CommandSet, __CustomerDetail.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __CustomerDetail.DetailsClass.PropertySetProperties.Customer
                Dim initializeCommandEntry = __CustomerDetail.DetailsClass.CommandSetProperties.NewAppointment
                Dim initializeMethodEntry = __CustomerDetail.DetailsClass.MethodSetProperties.NewAppointment
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __CustomerDetailEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CustomerDetail, __CustomerDetail.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CustomerDetail, __CustomerDetail.DetailsClass).Entry( _
                    AddressOf __CustomerDetail.DetailsClass.__CustomerDetail_InvokeInitializeDataWorkspace,
                    AddressOf __CustomerDetail.DetailsClass.__CustomerDetail_InvokeSavingEvent,
                    AddressOf __CustomerDetail.DetailsClass.__CustomerDetail_InvokeSavedEvent,
                    AddressOf __CustomerDetail.DetailsClass.__CustomerDetail_InvokeClosingEvent,
                    AddressOf __CustomerDetail.DetailsClass.__CustomerDetail_InvokeCreated,
                    AddressOf __CustomerDetail.DetailsClass.__CustomerDetail_InvokeActivated,
                    AddressOf __CustomerDetail.DetailsClass.__CustomerDetail_InvokeSaveErrorEvent)
            Private Shared Sub __CustomerDetail_InvokeInitializeDataWorkspace(s As __CustomerDetail, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.CustomerDetail_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __CustomerDetail_InvokeSavingEvent(s As __CustomerDetail) As Boolean
                Dim handled = False
                s.CustomerDetail_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __CustomerDetail_InvokeSavedEvent(s As __CustomerDetail)
                s.CustomerDetail_Saved()
            End Sub
            Private Shared Function __CustomerDetail_InvokeClosingEvent(s As __CustomerDetail) As Boolean
                Dim cancel = False
                s.CustomerDetail_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __CustomerDetail_InvokeCreated(s As __CustomerDetail)
                s.CustomerDetail_Created()
            End Sub
            Private Shared Sub __CustomerDetail_InvokeActivated(s As __CustomerDetail)
                s.CustomerDetail_Activated()
            End Sub
            Private Shared Function __CustomerDetail_InvokeSaveErrorEvent(s As __CustomerDetail, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.CustomerDetail_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __CustomerDetail.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __CustomerDetail.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __CustomerDetail.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            Private Function AppointmentsQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                If Me.Screen.Customer Is Nothing Then
                    Return Nothing
                End If

                Dim loader As Global.Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Appointment) = _
                    DirectCast(DirectCast(Me.Screen.Customer.Details.Properties.Appointments, Global.Microsoft.LightSwitch.Details.ILoadableProperty).Loader, Global.Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Appointment))
                If loader Is Nothing Then
                    Return Nothing
                End If

                Return Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                    Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                        loader,
                        "Employee"),
                    "State")
            End Function

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Customer As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Global.LightSwitchApplication.Customer).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _CustomerId As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Integer).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Appointments As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Global.LightSwitchApplication.Appointment).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _NewAppointmentCommand As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CustomerDetail, __CustomerDetail.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _NewAppointmentMethod As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CustomerDetail, __CustomerDetail.DetailsClass).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __CustomerDetail, __CustomerDetail.DetailsClass)

                Public ReadOnly Property Customer As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Global.LightSwitchApplication.Customer)
                    Get
                        Return DirectCast(MyBase.GetItem(__CustomerDetail.DetailsClass.PropertySetProperties.Customer), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Global.LightSwitchApplication.Customer))
                    End Get
                End Property

                Public ReadOnly Property CustomerId As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Integer)
                    Get
                        Return DirectCast(MyBase.GetItem(__CustomerDetail.DetailsClass.PropertySetProperties.CustomerId), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Integer))
                    End Get
                End Property

                Public ReadOnly Property Appointments As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Global.LightSwitchApplication.Appointment)
                    Get
                        Return DirectCast(MyBase.GetItem(__CustomerDetail.DetailsClass.PropertySetProperties.Appointments), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Global.LightSwitchApplication.Appointment))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __CustomerDetail, __CustomerDetail.DetailsClass)

                Public ReadOnly Property NewAppointment As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CustomerDetail, __CustomerDetail.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CustomerDetail.DetailsClass.CommandSetProperties.NewAppointment), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CustomerDetail, __CustomerDetail.DetailsClass))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __CustomerDetail, __CustomerDetail.DetailsClass)

                Public ReadOnly Property NewAppointment As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CustomerDetail, __CustomerDetail.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CustomerDetail.DetailsClass.MethodSetProperties.NewAppointment), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CustomerDetail, __CustomerDetail.DetailsClass))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly Customer As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Global.LightSwitchApplication.Customer).Entry( _
                    "Customer",
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Customer_Stub,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Customer_Validate,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Customer_CreateQuery,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Customer_OnValueChanged,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Customer_OnLoaded)
                Private Shared Sub _Customer_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CustomerDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Global.LightSwitchApplication.Customer).Data), d As __CustomerDetail.DetailsClass, sf As Object)
                    c(d, d._Customer, sf)
                End Sub
                Private Shared Sub _Customer_Validate(s As __CustomerDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Customer_Validate(r)
                End Sub
                Private Shared Function _Customer_CreateQuery(d As __CustomerDetail.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return Nothing
                End Function
                Private Shared Sub _Customer_OnValueChanged(s As __CustomerDetail)
                    s.Customer_Changed()
                End Sub
                Private Shared Sub _Customer_OnLoaded(s As __CustomerDetail, succeeded As Boolean)
                    s.Customer_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly CustomerId As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Integer).Entry( _
                    "CustomerId",
                    False,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._CustomerId_Stub,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._CustomerId_Validate,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._CustomerId_OnValueChanged)
                Private Shared Sub _CustomerId_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CustomerDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Integer).Data), d As __CustomerDetail.DetailsClass, sf As Object)
                    c(d, d._CustomerId, sf)
                End Sub
                Private Shared Sub _CustomerId_Validate(s As __CustomerDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.CustomerId_Validate(r)
                End Sub
                Private Shared Sub _CustomerId_OnValueChanged(s As __CustomerDetail)
                    s.CustomerId_Changed()
                End Sub

                Public Shared ReadOnly Appointments As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Global.LightSwitchApplication.Appointment).Entry( _
                    "Appointments",
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Appointments_Stub,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Appointments_Validate,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Appointments_CreateQuery,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Appointments_SelectionChanged,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Appointments_OnCollectionChanged,
                    AddressOf __CustomerDetail.DetailsClass.PropertySetProperties._Appointments_OnLoaded)
                Private Shared Sub _Appointments_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CustomerDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CustomerDetail, __CustomerDetail.DetailsClass, Global.LightSwitchApplication.Appointment).Data), d As __CustomerDetail.DetailsClass, sf As Object)
                    c(d, d._Appointments, sf)
                End Sub
                Private Shared Sub _Appointments_Validate(s As __CustomerDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Appointments_Validate(r)
                End Sub
                Private Shared Function _Appointments_CreateQuery(d As __CustomerDetail.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.AppointmentsQuery()
                End Function
                Private Shared Sub _Appointments_SelectionChanged(s As __CustomerDetail)
                    s.Appointments_SelectionChanged()
                End Sub
                Private Shared Sub _Appointments_OnCollectionChanged(s As __CustomerDetail, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.Appointments_Changed(e)
                End Sub
                Private Shared Sub _Appointments_OnLoaded(s As __CustomerDetail, succeeded As Boolean)
                    s.Appointments_Loaded(succeeded)
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties

                Public Shared ReadOnly NewAppointment As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CustomerDetail, __CustomerDetail.DetailsClass).Entry( _
                    "NewAppointment",
                    AddressOf __CustomerDetail.DetailsClass.CommandSetProperties._NewAppointment_Stub,
                    AddressOf __CustomerDetail.DetailsClass.CommandSetProperties._NewAppointment_CreateExecutableObject)
                Private Shared Sub _NewAppointment_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CustomerDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CustomerDetail, __CustomerDetail.DetailsClass).Data), d As __CustomerDetail.DetailsClass, sf As Object)
                    c(d, d._NewAppointmentCommand, sf)
                End Sub
                Private Shared Function _NewAppointment_CreateExecutableObject(d As __CustomerDetail.DetailsClass) As Global.Microsoft.LightSwitch.IExecutable
                    Return DirectCast(d, __CustomerDetail.DetailsClass).Methods.NewAppointment.CreateInvocation()
                End Function

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties

                Public Shared ReadOnly NewAppointment As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CustomerDetail, __CustomerDetail.DetailsClass).Entry( _
                    "NewAppointment",
                    AddressOf __CustomerDetail.DetailsClass.MethodSetProperties._NewAppointment_Stub,
                    AddressOf __CustomerDetail.DetailsClass.MethodSetProperties._NewAppointment_CanInvoke,
                    AddressOf __CustomerDetail.DetailsClass.MethodSetProperties._NewAppointment_InvokeMethod)
                Private Shared Sub _NewAppointment_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CustomerDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CustomerDetail, __CustomerDetail.DetailsClass).Data), d As __CustomerDetail.DetailsClass, sf As Object)
                    c(d, d._NewAppointmentMethod, sf)
                End Sub
                Private Shared Function _NewAppointment_CanInvoke(d As __CustomerDetail.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object), ex As Global.System.Exception) As Global.System.Exception
                    Dim result = True
                    d.Screen.NewAppointment_CanExecute(result)
                    Return If(result, Nothing, ex)
                End Function
                Private Shared Sub _NewAppointment_InvokeMethod(d As __CustomerDetail.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object))
                    d.Screen.NewAppointment_Execute()
                End Sub

            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class EmployeeDetail
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __EmployeeDetail, __EmployeeDetail.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New(ByVal EmployeeId As Integer)
            MyBase.New("LightSwitchApplication:EmployeeDetail")
                Me.EmployeeId = EmployeeId
            __EmployeeDetail.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance(ByVal EmployeeId As Integer) As EmployeeDetail
            Return New __EmployeeDetail( _
                        EmployeeId _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EmployeeDetail_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EmployeeDetail_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EmployeeDetail_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EmployeeDetail_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EmployeeDetail_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EmployeeDetail_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EmployeeDetail_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub Employee_Changed()
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Employee_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub EmployeeId_Changed()
        End Sub

        Partial Private Sub Appointments_SelectionChanged()
        End Sub

        Partial Private Sub Appointments_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointments_Loaded(ByVal succeeded As Boolean)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Employee As Global.LightSwitchApplication.Employee
            Get
                Return __EmployeeDetail.DetailsClass.GetValue(Me, __EmployeeDetail.DetailsClass.PropertySetProperties.Employee)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Employee_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property EmployeeId As Integer
            Get
                Return __EmployeeDetail.DetailsClass.GetValue(Me, __EmployeeDetail.DetailsClass.PropertySetProperties.EmployeeId)
            End Get
            Set(ByVal value As Integer)
                __EmployeeDetail.DetailsClass.SetValue(Me, __EmployeeDetail.DetailsClass.PropertySetProperties.EmployeeId, value)
            End Set
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EmployeeId_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the Appointments visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Appointments As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Appointment)
            Get
                Return __EmployeeDetail.DetailsClass.GetValue(Me, __EmployeeDetail.DetailsClass.PropertySetProperties.Appointments)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointments_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, __EmployeeDetail.DetailsClass.PropertySet, __EmployeeDetail.DetailsClass.CommandSet, __EmployeeDetail.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __EmployeeDetail.DetailsClass.PropertySetProperties.Employee
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __EmployeeDetailEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __EmployeeDetail, __EmployeeDetail.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __EmployeeDetail, __EmployeeDetail.DetailsClass).Entry( _
                    AddressOf __EmployeeDetail.DetailsClass.__EmployeeDetail_InvokeInitializeDataWorkspace,
                    AddressOf __EmployeeDetail.DetailsClass.__EmployeeDetail_InvokeSavingEvent,
                    AddressOf __EmployeeDetail.DetailsClass.__EmployeeDetail_InvokeSavedEvent,
                    AddressOf __EmployeeDetail.DetailsClass.__EmployeeDetail_InvokeClosingEvent,
                    AddressOf __EmployeeDetail.DetailsClass.__EmployeeDetail_InvokeCreated,
                    AddressOf __EmployeeDetail.DetailsClass.__EmployeeDetail_InvokeActivated,
                    AddressOf __EmployeeDetail.DetailsClass.__EmployeeDetail_InvokeSaveErrorEvent)
            Private Shared Sub __EmployeeDetail_InvokeInitializeDataWorkspace(s As __EmployeeDetail, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.EmployeeDetail_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __EmployeeDetail_InvokeSavingEvent(s As __EmployeeDetail) As Boolean
                Dim handled = False
                s.EmployeeDetail_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __EmployeeDetail_InvokeSavedEvent(s As __EmployeeDetail)
                s.EmployeeDetail_Saved()
            End Sub
            Private Shared Function __EmployeeDetail_InvokeClosingEvent(s As __EmployeeDetail) As Boolean
                Dim cancel = False
                s.EmployeeDetail_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __EmployeeDetail_InvokeCreated(s As __EmployeeDetail)
                s.EmployeeDetail_Created()
            End Sub
            Private Shared Sub __EmployeeDetail_InvokeActivated(s As __EmployeeDetail)
                s.EmployeeDetail_Activated()
            End Sub
            Private Shared Function __EmployeeDetail_InvokeSaveErrorEvent(s As __EmployeeDetail, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.EmployeeDetail_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __EmployeeDetail.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __EmployeeDetail.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __EmployeeDetail.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            Private Function AppointmentsQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                If Me.Screen.Employee Is Nothing Then
                    Return Nothing
                End If

                Dim loader As Global.Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Appointment) = _
                    DirectCast(DirectCast(Me.Screen.Employee.Details.Properties.Appointments, Global.Microsoft.LightSwitch.Details.ILoadableProperty).Loader, Global.Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Appointment))
                If loader Is Nothing Then
                    Return Nothing
                End If

                Return Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                    loader,
                    "State")
            End Function

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Employee As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Global.LightSwitchApplication.Employee).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _EmployeeId As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Integer).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Appointments As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Global.LightSwitchApplication.Appointment).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __EmployeeDetail, __EmployeeDetail.DetailsClass)

                Public ReadOnly Property Employee As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Global.LightSwitchApplication.Employee)
                    Get
                        Return DirectCast(MyBase.GetItem(__EmployeeDetail.DetailsClass.PropertySetProperties.Employee), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Global.LightSwitchApplication.Employee))
                    End Get
                End Property

                Public ReadOnly Property EmployeeId As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Integer)
                    Get
                        Return DirectCast(MyBase.GetItem(__EmployeeDetail.DetailsClass.PropertySetProperties.EmployeeId), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Integer))
                    End Get
                End Property

                Public ReadOnly Property Appointments As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Global.LightSwitchApplication.Appointment)
                    Get
                        Return DirectCast(MyBase.GetItem(__EmployeeDetail.DetailsClass.PropertySetProperties.Appointments), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Global.LightSwitchApplication.Appointment))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __EmployeeDetail, __EmployeeDetail.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __EmployeeDetail, __EmployeeDetail.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly Employee As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Global.LightSwitchApplication.Employee).Entry( _
                    "Employee",
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Employee_Stub,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Employee_Validate,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Employee_CreateQuery,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Employee_OnValueChanged,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Employee_OnLoaded)
                Private Shared Sub _Employee_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __EmployeeDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Global.LightSwitchApplication.Employee).Data), d As __EmployeeDetail.DetailsClass, sf As Object)
                    c(d, d._Employee, sf)
                End Sub
                Private Shared Sub _Employee_Validate(s As __EmployeeDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Employee_Validate(r)
                End Sub
                Private Shared Function _Employee_CreateQuery(d As __EmployeeDetail.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return Nothing
                End Function
                Private Shared Sub _Employee_OnValueChanged(s As __EmployeeDetail)
                    s.Employee_Changed()
                End Sub
                Private Shared Sub _Employee_OnLoaded(s As __EmployeeDetail, succeeded As Boolean)
                    s.Employee_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly EmployeeId As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Integer).Entry( _
                    "EmployeeId",
                    False,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._EmployeeId_Stub,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._EmployeeId_Validate,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._EmployeeId_OnValueChanged)
                Private Shared Sub _EmployeeId_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __EmployeeDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Integer).Data), d As __EmployeeDetail.DetailsClass, sf As Object)
                    c(d, d._EmployeeId, sf)
                End Sub
                Private Shared Sub _EmployeeId_Validate(s As __EmployeeDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.EmployeeId_Validate(r)
                End Sub
                Private Shared Sub _EmployeeId_OnValueChanged(s As __EmployeeDetail)
                    s.EmployeeId_Changed()
                End Sub

                Public Shared ReadOnly Appointments As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Global.LightSwitchApplication.Appointment).Entry( _
                    "Appointments",
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Appointments_Stub,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Appointments_Validate,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Appointments_CreateQuery,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Appointments_SelectionChanged,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Appointments_OnCollectionChanged,
                    AddressOf __EmployeeDetail.DetailsClass.PropertySetProperties._Appointments_OnLoaded)
                Private Shared Sub _Appointments_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __EmployeeDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __EmployeeDetail, __EmployeeDetail.DetailsClass, Global.LightSwitchApplication.Appointment).Data), d As __EmployeeDetail.DetailsClass, sf As Object)
                    c(d, d._Appointments, sf)
                End Sub
                Private Shared Sub _Appointments_Validate(s As __EmployeeDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Appointments_Validate(r)
                End Sub
                Private Shared Function _Appointments_CreateQuery(d As __EmployeeDetail.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.AppointmentsQuery()
                End Function
                Private Shared Sub _Appointments_SelectionChanged(s As __EmployeeDetail)
                    s.Appointments_SelectionChanged()
                End Sub
                Private Shared Sub _Appointments_OnCollectionChanged(s As __EmployeeDetail, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.Appointments_Changed(e)
                End Sub
                Private Shared Sub _Appointments_OnLoaded(s As __EmployeeDetail, succeeded As Boolean)
                    s.Appointments_Loaded(succeeded)
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties
            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class CreateNewAppointment
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New(ByVal CustomerID As Global.System.Nullable(Of Integer))
            MyBase.New("LightSwitchApplication:CreateNewAppointment")
                Me.CustomerID = CustomerID
            __CreateNewAppointment.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance(ByVal CustomerID As Global.System.Nullable(Of Integer)) As CreateNewAppointment
            Return New __CreateNewAppointment( _
                        CustomerID _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewAppointment_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewAppointment_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewAppointment_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewAppointment_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewAppointment_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewAppointment_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewAppointment_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub AppointmentProperty_Changed()
        End Sub

        Partial Private Sub Rooms_SelectionChanged()
        End Sub

        Partial Private Sub Rooms_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Rooms_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub AvailableEmployees_SelectionChanged()
        End Sub

        Partial Private Sub AvailableEmployees_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AvailableEmployees_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub CustomerID_Changed()
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property AppointmentProperty As Global.LightSwitchApplication.Appointment
            Get
                Return __CreateNewAppointment.DetailsClass.GetValue(Me, __CreateNewAppointment.DetailsClass.PropertySetProperties.AppointmentProperty)
            End Get
            Set(ByVal value As Global.LightSwitchApplication.Appointment)
                __CreateNewAppointment.DetailsClass.SetValue(Me, __CreateNewAppointment.DetailsClass.PropertySetProperties.AppointmentProperty, value)
            End Set
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AppointmentProperty_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the Rooms visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Rooms As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Room)
            Get
                Return __CreateNewAppointment.DetailsClass.GetValue(Me, __CreateNewAppointment.DetailsClass.PropertySetProperties.Rooms)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Rooms_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the AvailableEmployees visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property AvailableEmployees As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Employee)
            Get
                Return __CreateNewAppointment.DetailsClass.GetValue(Me, __CreateNewAppointment.DetailsClass.PropertySetProperties.AvailableEmployees)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AvailableEmployees_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property CustomerID As Global.System.Nullable(Of Integer)
            Get
                Return __CreateNewAppointment.DetailsClass.GetValue(Me, __CreateNewAppointment.DetailsClass.PropertySetProperties.CustomerID)
            End Get
            Set(ByVal value As Global.System.Nullable(Of Integer))
                __CreateNewAppointment.DetailsClass.SetValue(Me, __CreateNewAppointment.DetailsClass.PropertySetProperties.CustomerID, value)
            End Set
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CustomerID_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, __CreateNewAppointment.DetailsClass.PropertySet, __CreateNewAppointment.DetailsClass.CommandSet, __CreateNewAppointment.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __CreateNewAppointment.DetailsClass.PropertySetProperties.AppointmentProperty
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __CreateNewAppointmentEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass).Entry( _
                    AddressOf __CreateNewAppointment.DetailsClass.__CreateNewAppointment_InvokeInitializeDataWorkspace,
                    AddressOf __CreateNewAppointment.DetailsClass.__CreateNewAppointment_InvokeSavingEvent,
                    AddressOf __CreateNewAppointment.DetailsClass.__CreateNewAppointment_InvokeSavedEvent,
                    AddressOf __CreateNewAppointment.DetailsClass.__CreateNewAppointment_InvokeClosingEvent,
                    AddressOf __CreateNewAppointment.DetailsClass.__CreateNewAppointment_InvokeCreated,
                    AddressOf __CreateNewAppointment.DetailsClass.__CreateNewAppointment_InvokeActivated,
                    AddressOf __CreateNewAppointment.DetailsClass.__CreateNewAppointment_InvokeSaveErrorEvent)
            Private Shared Sub __CreateNewAppointment_InvokeInitializeDataWorkspace(s As __CreateNewAppointment, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.CreateNewAppointment_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __CreateNewAppointment_InvokeSavingEvent(s As __CreateNewAppointment) As Boolean
                Dim handled = False
                s.CreateNewAppointment_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __CreateNewAppointment_InvokeSavedEvent(s As __CreateNewAppointment)
                s.CreateNewAppointment_Saved()
            End Sub
            Private Shared Function __CreateNewAppointment_InvokeClosingEvent(s As __CreateNewAppointment) As Boolean
                Dim cancel = False
                s.CreateNewAppointment_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __CreateNewAppointment_InvokeCreated(s As __CreateNewAppointment)
                s.CreateNewAppointment_Created()
            End Sub
            Private Shared Sub __CreateNewAppointment_InvokeActivated(s As __CreateNewAppointment)
                s.CreateNewAppointment_Activated()
            End Sub
            Private Shared Function __CreateNewAppointment_InvokeSaveErrorEvent(s As __CreateNewAppointment, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.CreateNewAppointment_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __CreateNewAppointment.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __CreateNewAppointment.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __CreateNewAppointment.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            Private Function RoomsQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                If Me.Screen.AppointmentProperty Is Nothing Then
                    Return Nothing
                End If

                Dim loader As Global.Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Room) = _
                    DirectCast(DirectCast(Me.Screen.AppointmentProperty.Details.Properties.Rooms, Global.Microsoft.LightSwitch.Details.ILoadableProperty).Loader, Global.Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Room))
                If loader Is Nothing Then
                    Return Nothing
                End If

                Return loader
            End Function

            Private Function AvailableEmployeesQuery(ByVal StartTime As Global.System.Nullable(Of Date), ByVal EndTime As Global.System.Nullable(Of Date)) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Me.Screen.DataWorkspace.ApplicationData.AvailableEmployees(StartTime, EndTime)
            End Function

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AppointmentProperty As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Appointment).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Rooms As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Room).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AvailableEmployees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Employee).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _CustomerID As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.System.Nullable(Of Integer)).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass)

                Public ReadOnly Property AppointmentProperty As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Appointment)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateNewAppointment.DetailsClass.PropertySetProperties.AppointmentProperty), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Appointment))
                    End Get
                End Property

                Public ReadOnly Property Rooms As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Room)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateNewAppointment.DetailsClass.PropertySetProperties.Rooms), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Room))
                    End Get
                End Property

                Public ReadOnly Property AvailableEmployees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Employee)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateNewAppointment.DetailsClass.PropertySetProperties.AvailableEmployees), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Employee))
                    End Get
                End Property

                Public ReadOnly Property CustomerID As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.System.Nullable(Of Integer))
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateNewAppointment.DetailsClass.PropertySetProperties.CustomerID), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.System.Nullable(Of Integer)))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly AppointmentProperty As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Appointment).Entry( _
                    "AppointmentProperty",
                    False,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._AppointmentProperty_Stub,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._AppointmentProperty_Validate,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._AppointmentProperty_OnValueChanged)
                Private Shared Sub _AppointmentProperty_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateNewAppointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Appointment).Data), d As __CreateNewAppointment.DetailsClass, sf As Object)
                    c(d, d._AppointmentProperty, sf)
                End Sub
                Private Shared Sub _AppointmentProperty_Validate(s As __CreateNewAppointment, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.AppointmentProperty_Validate(r)
                End Sub
                Private Shared Sub _AppointmentProperty_OnValueChanged(s As __CreateNewAppointment)
                    s.AppointmentProperty_Changed()
                End Sub

                Public Shared ReadOnly Rooms As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Room).Entry( _
                    "Rooms",
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._Rooms_Stub,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._Rooms_Validate,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._Rooms_CreateQuery,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._Rooms_SelectionChanged,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._Rooms_OnCollectionChanged,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._Rooms_OnLoaded)
                Private Shared Sub _Rooms_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateNewAppointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Room).Data), d As __CreateNewAppointment.DetailsClass, sf As Object)
                    c(d, d._Rooms, sf)
                End Sub
                Private Shared Sub _Rooms_Validate(s As __CreateNewAppointment, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Rooms_Validate(r)
                End Sub
                Private Shared Function _Rooms_CreateQuery(d As __CreateNewAppointment.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.RoomsQuery()
                End Function
                Private Shared Sub _Rooms_SelectionChanged(s As __CreateNewAppointment)
                    s.Rooms_SelectionChanged()
                End Sub
                Private Shared Sub _Rooms_OnCollectionChanged(s As __CreateNewAppointment, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.Rooms_Changed(e)
                End Sub
                Private Shared Sub _Rooms_OnLoaded(s As __CreateNewAppointment, succeeded As Boolean)
                    s.Rooms_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly AvailableEmployees As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Employee).Entry( _
                    "AvailableEmployees",
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._AvailableEmployees_Stub,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._AvailableEmployees_Validate,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._AvailableEmployees_CreateQuery,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._AvailableEmployees_SelectionChanged,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._AvailableEmployees_OnCollectionChanged,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._AvailableEmployees_OnLoaded)
                Private Shared Sub _AvailableEmployees_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateNewAppointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.LightSwitchApplication.Employee).Data), d As __CreateNewAppointment.DetailsClass, sf As Object)
                    c(d, d._AvailableEmployees, sf)
                End Sub
                Private Shared Sub _AvailableEmployees_Validate(s As __CreateNewAppointment, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.AvailableEmployees_Validate(r)
                End Sub
                Private Shared Function _AvailableEmployees_CreateQuery(d As __CreateNewAppointment.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.AvailableEmployeesQuery(DirectCast(args(0), Global.System.Nullable(Of Date)), DirectCast(args(1), Global.System.Nullable(Of Date)))
                End Function
                Private Shared Sub _AvailableEmployees_SelectionChanged(s As __CreateNewAppointment)
                    s.AvailableEmployees_SelectionChanged()
                End Sub
                Private Shared Sub _AvailableEmployees_OnCollectionChanged(s As __CreateNewAppointment, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.AvailableEmployees_Changed(e)
                End Sub
                Private Shared Sub _AvailableEmployees_OnLoaded(s As __CreateNewAppointment, succeeded As Boolean)
                    s.AvailableEmployees_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly CustomerID As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.System.Nullable(Of Integer)).Entry( _
                    "CustomerID",
                    False,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._CustomerID_Stub,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._CustomerID_Validate,
                    AddressOf __CreateNewAppointment.DetailsClass.PropertySetProperties._CustomerID_OnValueChanged)
                Private Shared Sub _CustomerID_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateNewAppointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewAppointment, __CreateNewAppointment.DetailsClass, Global.System.Nullable(Of Integer)).Data), d As __CreateNewAppointment.DetailsClass, sf As Object)
                    c(d, d._CustomerID, sf)
                End Sub
                Private Shared Sub _CustomerID_Validate(s As __CreateNewAppointment, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.CustomerID_Validate(r)
                End Sub
                Private Shared Sub _CustomerID_OnValueChanged(s As __CreateNewAppointment)
                    s.CustomerID_Changed()
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties
            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class CreateNewCustomer
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New()
            MyBase.New("LightSwitchApplication:CreateNewCustomer")
            __CreateNewCustomer.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance() As CreateNewCustomer
            Return New __CreateNewCustomer( _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewCustomer_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewCustomer_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewCustomer_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewCustomer_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewCustomer_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewCustomer_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewCustomer_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub CustomerProperty_Changed()
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property CustomerProperty As Global.LightSwitchApplication.Customer
            Get
                Return __CreateNewCustomer.DetailsClass.GetValue(Me, __CreateNewCustomer.DetailsClass.PropertySetProperties.CustomerProperty)
            End Get
            Set(ByVal value As Global.LightSwitchApplication.Customer)
                __CreateNewCustomer.DetailsClass.SetValue(Me, __CreateNewCustomer.DetailsClass.PropertySetProperties.CustomerProperty, value)
            End Set
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CustomerProperty_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass, __CreateNewCustomer.DetailsClass.PropertySet, __CreateNewCustomer.DetailsClass.CommandSet, __CreateNewCustomer.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __CreateNewCustomer.DetailsClass.PropertySetProperties.CustomerProperty
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __CreateNewCustomerEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass).Entry( _
                    AddressOf __CreateNewCustomer.DetailsClass.__CreateNewCustomer_InvokeInitializeDataWorkspace,
                    AddressOf __CreateNewCustomer.DetailsClass.__CreateNewCustomer_InvokeSavingEvent,
                    AddressOf __CreateNewCustomer.DetailsClass.__CreateNewCustomer_InvokeSavedEvent,
                    AddressOf __CreateNewCustomer.DetailsClass.__CreateNewCustomer_InvokeClosingEvent,
                    AddressOf __CreateNewCustomer.DetailsClass.__CreateNewCustomer_InvokeCreated,
                    AddressOf __CreateNewCustomer.DetailsClass.__CreateNewCustomer_InvokeActivated,
                    AddressOf __CreateNewCustomer.DetailsClass.__CreateNewCustomer_InvokeSaveErrorEvent)
            Private Shared Sub __CreateNewCustomer_InvokeInitializeDataWorkspace(s As __CreateNewCustomer, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.CreateNewCustomer_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __CreateNewCustomer_InvokeSavingEvent(s As __CreateNewCustomer) As Boolean
                Dim handled = False
                s.CreateNewCustomer_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __CreateNewCustomer_InvokeSavedEvent(s As __CreateNewCustomer)
                s.CreateNewCustomer_Saved()
            End Sub
            Private Shared Function __CreateNewCustomer_InvokeClosingEvent(s As __CreateNewCustomer) As Boolean
                Dim cancel = False
                s.CreateNewCustomer_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __CreateNewCustomer_InvokeCreated(s As __CreateNewCustomer)
                s.CreateNewCustomer_Created()
            End Sub
            Private Shared Sub __CreateNewCustomer_InvokeActivated(s As __CreateNewCustomer)
                s.CreateNewCustomer_Activated()
            End Sub
            Private Shared Function __CreateNewCustomer_InvokeSaveErrorEvent(s As __CreateNewCustomer, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.CreateNewCustomer_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __CreateNewCustomer.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __CreateNewCustomer.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __CreateNewCustomer.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _CustomerProperty As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass, Global.LightSwitchApplication.Customer).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass)

                Public ReadOnly Property CustomerProperty As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass, Global.LightSwitchApplication.Customer)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateNewCustomer.DetailsClass.PropertySetProperties.CustomerProperty), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass, Global.LightSwitchApplication.Customer))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly CustomerProperty As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass, Global.LightSwitchApplication.Customer).Entry( _
                    "CustomerProperty",
                    False,
                    AddressOf __CreateNewCustomer.DetailsClass.PropertySetProperties._CustomerProperty_Stub,
                    AddressOf __CreateNewCustomer.DetailsClass.PropertySetProperties._CustomerProperty_Validate,
                    AddressOf __CreateNewCustomer.DetailsClass.PropertySetProperties._CustomerProperty_OnValueChanged)
                Private Shared Sub _CustomerProperty_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateNewCustomer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewCustomer, __CreateNewCustomer.DetailsClass, Global.LightSwitchApplication.Customer).Data), d As __CreateNewCustomer.DetailsClass, sf As Object)
                    c(d, d._CustomerProperty, sf)
                End Sub
                Private Shared Sub _CustomerProperty_Validate(s As __CreateNewCustomer, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.CustomerProperty_Validate(r)
                End Sub
                Private Shared Sub _CustomerProperty_OnValueChanged(s As __CreateNewCustomer)
                    s.CustomerProperty_Changed()
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties
            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class CreateNewEmployee
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New()
            MyBase.New("LightSwitchApplication:CreateNewEmployee")
            __CreateNewEmployee.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance() As CreateNewEmployee
            Return New __CreateNewEmployee( _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewEmployee_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewEmployee_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewEmployee_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewEmployee_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewEmployee_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewEmployee_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateNewEmployee_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub EmployeeProperty_Changed()
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property EmployeeProperty As Global.LightSwitchApplication.Employee
            Get
                Return __CreateNewEmployee.DetailsClass.GetValue(Me, __CreateNewEmployee.DetailsClass.PropertySetProperties.EmployeeProperty)
            End Get
            Set(ByVal value As Global.LightSwitchApplication.Employee)
                __CreateNewEmployee.DetailsClass.SetValue(Me, __CreateNewEmployee.DetailsClass.PropertySetProperties.EmployeeProperty, value)
            End Set
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EmployeeProperty_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass, __CreateNewEmployee.DetailsClass.PropertySet, __CreateNewEmployee.DetailsClass.CommandSet, __CreateNewEmployee.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __CreateNewEmployee.DetailsClass.PropertySetProperties.EmployeeProperty
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __CreateNewEmployeeEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass).Entry( _
                    AddressOf __CreateNewEmployee.DetailsClass.__CreateNewEmployee_InvokeInitializeDataWorkspace,
                    AddressOf __CreateNewEmployee.DetailsClass.__CreateNewEmployee_InvokeSavingEvent,
                    AddressOf __CreateNewEmployee.DetailsClass.__CreateNewEmployee_InvokeSavedEvent,
                    AddressOf __CreateNewEmployee.DetailsClass.__CreateNewEmployee_InvokeClosingEvent,
                    AddressOf __CreateNewEmployee.DetailsClass.__CreateNewEmployee_InvokeCreated,
                    AddressOf __CreateNewEmployee.DetailsClass.__CreateNewEmployee_InvokeActivated,
                    AddressOf __CreateNewEmployee.DetailsClass.__CreateNewEmployee_InvokeSaveErrorEvent)
            Private Shared Sub __CreateNewEmployee_InvokeInitializeDataWorkspace(s As __CreateNewEmployee, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.CreateNewEmployee_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __CreateNewEmployee_InvokeSavingEvent(s As __CreateNewEmployee) As Boolean
                Dim handled = False
                s.CreateNewEmployee_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __CreateNewEmployee_InvokeSavedEvent(s As __CreateNewEmployee)
                s.CreateNewEmployee_Saved()
            End Sub
            Private Shared Function __CreateNewEmployee_InvokeClosingEvent(s As __CreateNewEmployee) As Boolean
                Dim cancel = False
                s.CreateNewEmployee_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __CreateNewEmployee_InvokeCreated(s As __CreateNewEmployee)
                s.CreateNewEmployee_Created()
            End Sub
            Private Shared Sub __CreateNewEmployee_InvokeActivated(s As __CreateNewEmployee)
                s.CreateNewEmployee_Activated()
            End Sub
            Private Shared Function __CreateNewEmployee_InvokeSaveErrorEvent(s As __CreateNewEmployee, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.CreateNewEmployee_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __CreateNewEmployee.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __CreateNewEmployee.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __CreateNewEmployee.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _EmployeeProperty As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass, Global.LightSwitchApplication.Employee).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass)

                Public ReadOnly Property EmployeeProperty As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass, Global.LightSwitchApplication.Employee)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateNewEmployee.DetailsClass.PropertySetProperties.EmployeeProperty), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass, Global.LightSwitchApplication.Employee))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly EmployeeProperty As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass, Global.LightSwitchApplication.Employee).Entry( _
                    "EmployeeProperty",
                    False,
                    AddressOf __CreateNewEmployee.DetailsClass.PropertySetProperties._EmployeeProperty_Stub,
                    AddressOf __CreateNewEmployee.DetailsClass.PropertySetProperties._EmployeeProperty_Validate,
                    AddressOf __CreateNewEmployee.DetailsClass.PropertySetProperties._EmployeeProperty_OnValueChanged)
                Private Shared Sub _EmployeeProperty_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateNewEmployee.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateNewEmployee, __CreateNewEmployee.DetailsClass, Global.LightSwitchApplication.Employee).Data), d As __CreateNewEmployee.DetailsClass, sf As Object)
                    c(d, d._EmployeeProperty, sf)
                End Sub
                Private Shared Sub _EmployeeProperty_Validate(s As __CreateNewEmployee, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.EmployeeProperty_Validate(r)
                End Sub
                Private Shared Sub _EmployeeProperty_OnValueChanged(s As __CreateNewEmployee)
                    s.EmployeeProperty_Changed()
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties
            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class CreateSampleData
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __CreateSampleData, __CreateSampleData.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New()
            MyBase.New("LightSwitchApplication:CreateSampleData")
            __CreateSampleData.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance() As CreateSampleData
            Return New __CreateSampleData( _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateSampleData_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateSampleData_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateSampleData_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateSampleData_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateSampleData_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateSampleData_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub CreateSampleData_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub States_SelectionChanged()
        End Sub

        Partial Private Sub States_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub States_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub Employees_SelectionChanged()
        End Sub

        Partial Private Sub Employees_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Employees_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub AvailableEmployees_SelectionChanged()
        End Sub

        Partial Private Sub AvailableEmployees_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AvailableEmployees_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub Customers_SelectionChanged()
        End Sub

        Partial Private Sub Customers_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customers_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub Appointments_SelectionChanged()
        End Sub

        Partial Private Sub Appointments_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointments_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub StartTime_Changed()
        End Sub

        Partial Private Sub EndTime_Changed()
        End Sub

        ''' <summary>
        ''' Gets the States visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property States As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.State)
            Get
                Return __CreateSampleData.DetailsClass.GetValue(Me, __CreateSampleData.DetailsClass.PropertySetProperties.States)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub States_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the Employees visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Employees As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Employee)
            Get
                Return __CreateSampleData.DetailsClass.GetValue(Me, __CreateSampleData.DetailsClass.PropertySetProperties.Employees)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Employees_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the AvailableEmployees visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property AvailableEmployees As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Employee)
            Get
                Return __CreateSampleData.DetailsClass.GetValue(Me, __CreateSampleData.DetailsClass.PropertySetProperties.AvailableEmployees)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AvailableEmployees_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the Customers visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Customers As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Customer)
            Get
                Return __CreateSampleData.DetailsClass.GetValue(Me, __CreateSampleData.DetailsClass.PropertySetProperties.Customers)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customers_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the Appointments visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Appointments As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Appointment)
            Get
                Return __CreateSampleData.DetailsClass.GetValue(Me, __CreateSampleData.DetailsClass.PropertySetProperties.Appointments)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointments_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property StartTime As Date
            Get
                Return __CreateSampleData.DetailsClass.GetValue(Me, __CreateSampleData.DetailsClass.PropertySetProperties.StartTime)
            End Get
            Set(ByVal value As Date)
                __CreateSampleData.DetailsClass.SetValue(Me, __CreateSampleData.DetailsClass.PropertySetProperties.StartTime, value)
            End Set
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub StartTime_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property EndTime As Date
            Get
                Return __CreateSampleData.DetailsClass.GetValue(Me, __CreateSampleData.DetailsClass.PropertySetProperties.EndTime)
            End Get
            Set(ByVal value As Date)
                __CreateSampleData.DetailsClass.SetValue(Me, __CreateSampleData.DetailsClass.PropertySetProperties.EndTime, value)
            End Set
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EndTime_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Calls the AddAll screen method.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub AddAll()
            Me.Details.Methods.AddAll.CreateInvocation().Execute()
        End Sub
        Partial Private Sub AddAll_CanExecute(ByRef result As Boolean)
        End Sub
        Partial Private Sub AddAll_Execute()
        End Sub

        ''' <summary>
        ''' Calls the AddCustomers screen method.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub AddCustomers()
            Me.Details.Methods.AddCustomers.CreateInvocation().Execute()
        End Sub
        Partial Private Sub AddCustomers_CanExecute(ByRef result As Boolean)
        End Sub
        Partial Private Sub AddCustomers_Execute()
        End Sub

        ''' <summary>
        ''' Calls the AddEmployees screen method.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub AddEmployees()
            Me.Details.Methods.AddEmployees.CreateInvocation().Execute()
        End Sub
        Partial Private Sub AddEmployees_CanExecute(ByRef result As Boolean)
        End Sub
        Partial Private Sub AddEmployees_Execute()
        End Sub

        ''' <summary>
        ''' Calls the AddStates screen method.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub AddStates()
            Me.Details.Methods.AddStates.CreateInvocation().Execute()
        End Sub
        Partial Private Sub AddStates_CanExecute(ByRef result As Boolean)
        End Sub
        Partial Private Sub AddStates_Execute()
        End Sub

        ''' <summary>
        ''' Calls the AddUsers screen method.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub AddUsers()
            Me.Details.Methods.AddUsers.CreateInvocation().Execute()
        End Sub
        Partial Private Sub AddUsers_CanExecute(ByRef result As Boolean)
        End Sub
        Partial Private Sub AddUsers_Execute()
        End Sub

        ''' <summary>
        ''' Calls the CreateAppointments screen method.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub CreateAppointments()
            Me.Details.Methods.CreateAppointments.CreateInvocation().Execute()
        End Sub
        Partial Private Sub CreateAppointments_CanExecute(ByRef result As Boolean)
        End Sub
        Partial Private Sub CreateAppointments_Execute()
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateSampleData, __CreateSampleData.DetailsClass, __CreateSampleData.DetailsClass.PropertySet, __CreateSampleData.DetailsClass.CommandSet, __CreateSampleData.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __CreateSampleData.DetailsClass.PropertySetProperties.States
                Dim initializeCommandEntry = __CreateSampleData.DetailsClass.CommandSetProperties.AddAll
                Dim initializeMethodEntry = __CreateSampleData.DetailsClass.MethodSetProperties.AddAll
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __CreateSampleDataEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    AddressOf __CreateSampleData.DetailsClass.__CreateSampleData_InvokeInitializeDataWorkspace,
                    AddressOf __CreateSampleData.DetailsClass.__CreateSampleData_InvokeSavingEvent,
                    AddressOf __CreateSampleData.DetailsClass.__CreateSampleData_InvokeSavedEvent,
                    AddressOf __CreateSampleData.DetailsClass.__CreateSampleData_InvokeClosingEvent,
                    AddressOf __CreateSampleData.DetailsClass.__CreateSampleData_InvokeCreated,
                    AddressOf __CreateSampleData.DetailsClass.__CreateSampleData_InvokeActivated,
                    AddressOf __CreateSampleData.DetailsClass.__CreateSampleData_InvokeSaveErrorEvent)
            Private Shared Sub __CreateSampleData_InvokeInitializeDataWorkspace(s As __CreateSampleData, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.CreateSampleData_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __CreateSampleData_InvokeSavingEvent(s As __CreateSampleData) As Boolean
                Dim handled = False
                s.CreateSampleData_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __CreateSampleData_InvokeSavedEvent(s As __CreateSampleData)
                s.CreateSampleData_Saved()
            End Sub
            Private Shared Function __CreateSampleData_InvokeClosingEvent(s As __CreateSampleData) As Boolean
                Dim cancel = False
                s.CreateSampleData_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __CreateSampleData_InvokeCreated(s As __CreateSampleData)
                s.CreateSampleData_Created()
            End Sub
            Private Shared Sub __CreateSampleData_InvokeActivated(s As __CreateSampleData)
                s.CreateSampleData_Activated()
            End Sub
            Private Shared Function __CreateSampleData_InvokeSaveErrorEvent(s As __CreateSampleData, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.CreateSampleData_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __CreateSampleData.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __CreateSampleData.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __CreateSampleData.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            Private Function StatesQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Me.Screen.DataWorkspace.ApplicationData.States
            End Function

            Private Function EmployeesQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Me.Screen.DataWorkspace.ApplicationData.Employees
            End Function

            Private Function AvailableEmployeesQuery(ByVal StartTime As Global.System.Nullable(Of Date), ByVal EndTime As Global.System.Nullable(Of Date)) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Me.Screen.DataWorkspace.ApplicationData.AvailableEmployees(StartTime, EndTime)
            End Function

            Private Function CustomersQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                    Me.Screen.DataWorkspace.ApplicationData.Customers,
                    "State")
            End Function

            Private Function AppointmentsQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                    Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                        Global.Microsoft.LightSwitch.DataServiceQueryable.Include(
                            Me.Screen.DataWorkspace.ApplicationData.Appointments,
                            "Customer"),
                        "Employee"),
                    "State")
            End Function

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _States As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.State).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Employees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Employee).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AvailableEmployees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Employee).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Customers As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Customer).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Appointments As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Appointment).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _StartTime As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Date).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _EndTime As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Date).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AddAllCommand As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AddCustomersCommand As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AddEmployeesCommand As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AddStatesCommand As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AddUsersCommand As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _CreateAppointmentsCommand As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AddAllMethod As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AddCustomersMethod As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AddEmployeesMethod As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AddStatesMethod As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AddUsersMethod As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _CreateAppointmentsMethod As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __CreateSampleData, __CreateSampleData.DetailsClass)

                Public ReadOnly Property States As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.State)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.PropertySetProperties.States), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.State))
                    End Get
                End Property

                Public ReadOnly Property Employees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Employee)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.PropertySetProperties.Employees), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Employee))
                    End Get
                End Property

                Public ReadOnly Property AvailableEmployees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Employee)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.PropertySetProperties.AvailableEmployees), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Employee))
                    End Get
                End Property

                Public ReadOnly Property Customers As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Customer)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.PropertySetProperties.Customers), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Customer))
                    End Get
                End Property

                Public ReadOnly Property Appointments As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Appointment)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.PropertySetProperties.Appointments), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Appointment))
                    End Get
                End Property

                Public ReadOnly Property StartTime As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Date)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.PropertySetProperties.StartTime), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Date))
                    End Get
                End Property

                Public ReadOnly Property EndTime As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Date)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.PropertySetProperties.EndTime), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Date))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __CreateSampleData, __CreateSampleData.DetailsClass)

                Public ReadOnly Property AddAll As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.CommandSetProperties.AddAll), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property AddCustomers As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.CommandSetProperties.AddCustomers), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property AddEmployees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.CommandSetProperties.AddEmployees), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property AddStates As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.CommandSetProperties.AddStates), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property AddUsers As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.CommandSetProperties.AddUsers), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property CreateAppointments As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.CommandSetProperties.CreateAppointments), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __CreateSampleData, __CreateSampleData.DetailsClass)

                Public ReadOnly Property AddAll As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.MethodSetProperties.AddAll), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property AddCustomers As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.MethodSetProperties.AddCustomers), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property AddEmployees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.MethodSetProperties.AddEmployees), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property AddStates As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.MethodSetProperties.AddStates), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property AddUsers As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.MethodSetProperties.AddUsers), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

                Public ReadOnly Property CreateAppointments As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass)
                    Get
                        Return DirectCast(MyBase.GetItem(__CreateSampleData.DetailsClass.MethodSetProperties.CreateAppointments), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly States As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.State).Entry( _
                    "States",
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._States_Stub,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._States_Validate,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._States_CreateQuery,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._States_SelectionChanged,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._States_OnCollectionChanged,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._States_OnLoaded)
                Private Shared Sub _States_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.State).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._States, sf)
                End Sub
                Private Shared Sub _States_Validate(s As __CreateSampleData, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.States_Validate(r)
                End Sub
                Private Shared Function _States_CreateQuery(d As __CreateSampleData.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.StatesQuery()
                End Function
                Private Shared Sub _States_SelectionChanged(s As __CreateSampleData)
                    s.States_SelectionChanged()
                End Sub
                Private Shared Sub _States_OnCollectionChanged(s As __CreateSampleData, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.States_Changed(e)
                End Sub
                Private Shared Sub _States_OnLoaded(s As __CreateSampleData, succeeded As Boolean)
                    s.States_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly Employees As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Employee).Entry( _
                    "Employees",
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Employees_Stub,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Employees_Validate,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Employees_CreateQuery,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Employees_SelectionChanged,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Employees_OnCollectionChanged,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Employees_OnLoaded)
                Private Shared Sub _Employees_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Employee).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._Employees, sf)
                End Sub
                Private Shared Sub _Employees_Validate(s As __CreateSampleData, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Employees_Validate(r)
                End Sub
                Private Shared Function _Employees_CreateQuery(d As __CreateSampleData.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.EmployeesQuery()
                End Function
                Private Shared Sub _Employees_SelectionChanged(s As __CreateSampleData)
                    s.Employees_SelectionChanged()
                End Sub
                Private Shared Sub _Employees_OnCollectionChanged(s As __CreateSampleData, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.Employees_Changed(e)
                End Sub
                Private Shared Sub _Employees_OnLoaded(s As __CreateSampleData, succeeded As Boolean)
                    s.Employees_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly AvailableEmployees As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Employee).Entry( _
                    "AvailableEmployees",
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._AvailableEmployees_Stub,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._AvailableEmployees_Validate,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._AvailableEmployees_CreateQuery,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._AvailableEmployees_SelectionChanged,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._AvailableEmployees_OnCollectionChanged,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._AvailableEmployees_OnLoaded)
                Private Shared Sub _AvailableEmployees_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Employee).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AvailableEmployees, sf)
                End Sub
                Private Shared Sub _AvailableEmployees_Validate(s As __CreateSampleData, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.AvailableEmployees_Validate(r)
                End Sub
                Private Shared Function _AvailableEmployees_CreateQuery(d As __CreateSampleData.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.AvailableEmployeesQuery(DirectCast(args(0), Global.System.Nullable(Of Date)), DirectCast(args(1), Global.System.Nullable(Of Date)))
                End Function
                Private Shared Sub _AvailableEmployees_SelectionChanged(s As __CreateSampleData)
                    s.AvailableEmployees_SelectionChanged()
                End Sub
                Private Shared Sub _AvailableEmployees_OnCollectionChanged(s As __CreateSampleData, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.AvailableEmployees_Changed(e)
                End Sub
                Private Shared Sub _AvailableEmployees_OnLoaded(s As __CreateSampleData, succeeded As Boolean)
                    s.AvailableEmployees_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly Customers As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Customer).Entry( _
                    "Customers",
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Customers_Stub,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Customers_Validate,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Customers_CreateQuery,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Customers_SelectionChanged,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Customers_OnCollectionChanged,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Customers_OnLoaded)
                Private Shared Sub _Customers_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Customer).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._Customers, sf)
                End Sub
                Private Shared Sub _Customers_Validate(s As __CreateSampleData, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Customers_Validate(r)
                End Sub
                Private Shared Function _Customers_CreateQuery(d As __CreateSampleData.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.CustomersQuery()
                End Function
                Private Shared Sub _Customers_SelectionChanged(s As __CreateSampleData)
                    s.Customers_SelectionChanged()
                End Sub
                Private Shared Sub _Customers_OnCollectionChanged(s As __CreateSampleData, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.Customers_Changed(e)
                End Sub
                Private Shared Sub _Customers_OnLoaded(s As __CreateSampleData, succeeded As Boolean)
                    s.Customers_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly Appointments As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Appointment).Entry( _
                    "Appointments",
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Appointments_Stub,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Appointments_Validate,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Appointments_CreateQuery,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Appointments_SelectionChanged,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Appointments_OnCollectionChanged,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._Appointments_OnLoaded)
                Private Shared Sub _Appointments_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Global.LightSwitchApplication.Appointment).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._Appointments, sf)
                End Sub
                Private Shared Sub _Appointments_Validate(s As __CreateSampleData, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Appointments_Validate(r)
                End Sub
                Private Shared Function _Appointments_CreateQuery(d As __CreateSampleData.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.AppointmentsQuery()
                End Function
                Private Shared Sub _Appointments_SelectionChanged(s As __CreateSampleData)
                    s.Appointments_SelectionChanged()
                End Sub
                Private Shared Sub _Appointments_OnCollectionChanged(s As __CreateSampleData, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.Appointments_Changed(e)
                End Sub
                Private Shared Sub _Appointments_OnLoaded(s As __CreateSampleData, succeeded As Boolean)
                    s.Appointments_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly StartTime As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Date).Entry( _
                    "StartTime",
                    False,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._StartTime_Stub,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._StartTime_Validate,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._StartTime_OnValueChanged)
                Private Shared Sub _StartTime_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Date).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._StartTime, sf)
                End Sub
                Private Shared Sub _StartTime_Validate(s As __CreateSampleData, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.StartTime_Validate(r)
                End Sub
                Private Shared Sub _StartTime_OnValueChanged(s As __CreateSampleData)
                    s.StartTime_Changed()
                End Sub

                Public Shared ReadOnly EndTime As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Date).Entry( _
                    "EndTime",
                    False,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._EndTime_Stub,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._EndTime_Validate,
                    AddressOf __CreateSampleData.DetailsClass.PropertySetProperties._EndTime_OnValueChanged)
                Private Shared Sub _EndTime_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __CreateSampleData, __CreateSampleData.DetailsClass, Date).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._EndTime, sf)
                End Sub
                Private Shared Sub _EndTime_Validate(s As __CreateSampleData, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.EndTime_Validate(r)
                End Sub
                Private Shared Sub _EndTime_OnValueChanged(s As __CreateSampleData)
                    s.EndTime_Changed()
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties

                Public Shared ReadOnly AddAll As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "AddAll",
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._AddAll_Stub,
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._AddAll_CreateExecutableObject)
                Private Shared Sub _AddAll_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AddAllCommand, sf)
                End Sub
                Private Shared Function _AddAll_CreateExecutableObject(d As __CreateSampleData.DetailsClass) As Global.Microsoft.LightSwitch.IExecutable
                    Return DirectCast(d, __CreateSampleData.DetailsClass).Methods.AddAll.CreateInvocation()
                End Function

                Public Shared ReadOnly AddCustomers As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "AddCustomers",
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._AddCustomers_Stub,
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._AddCustomers_CreateExecutableObject)
                Private Shared Sub _AddCustomers_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AddCustomersCommand, sf)
                End Sub
                Private Shared Function _AddCustomers_CreateExecutableObject(d As __CreateSampleData.DetailsClass) As Global.Microsoft.LightSwitch.IExecutable
                    Return DirectCast(d, __CreateSampleData.DetailsClass).Methods.AddCustomers.CreateInvocation()
                End Function

                Public Shared ReadOnly AddEmployees As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "AddEmployees",
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._AddEmployees_Stub,
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._AddEmployees_CreateExecutableObject)
                Private Shared Sub _AddEmployees_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AddEmployeesCommand, sf)
                End Sub
                Private Shared Function _AddEmployees_CreateExecutableObject(d As __CreateSampleData.DetailsClass) As Global.Microsoft.LightSwitch.IExecutable
                    Return DirectCast(d, __CreateSampleData.DetailsClass).Methods.AddEmployees.CreateInvocation()
                End Function

                Public Shared ReadOnly AddStates As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "AddStates",
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._AddStates_Stub,
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._AddStates_CreateExecutableObject)
                Private Shared Sub _AddStates_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AddStatesCommand, sf)
                End Sub
                Private Shared Function _AddStates_CreateExecutableObject(d As __CreateSampleData.DetailsClass) As Global.Microsoft.LightSwitch.IExecutable
                    Return DirectCast(d, __CreateSampleData.DetailsClass).Methods.AddStates.CreateInvocation()
                End Function

                Public Shared ReadOnly AddUsers As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "AddUsers",
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._AddUsers_Stub,
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._AddUsers_CreateExecutableObject)
                Private Shared Sub _AddUsers_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AddUsersCommand, sf)
                End Sub
                Private Shared Function _AddUsers_CreateExecutableObject(d As __CreateSampleData.DetailsClass) As Global.Microsoft.LightSwitch.IExecutable
                    Return DirectCast(d, __CreateSampleData.DetailsClass).Methods.AddUsers.CreateInvocation()
                End Function

                Public Shared ReadOnly CreateAppointments As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "CreateAppointments",
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._CreateAppointments_Stub,
                    AddressOf __CreateSampleData.DetailsClass.CommandSetProperties._CreateAppointments_CreateExecutableObject)
                Private Shared Sub _CreateAppointments_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommand(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._CreateAppointmentsCommand, sf)
                End Sub
                Private Shared Function _CreateAppointments_CreateExecutableObject(d As __CreateSampleData.DetailsClass) As Global.Microsoft.LightSwitch.IExecutable
                    Return DirectCast(d, __CreateSampleData.DetailsClass).Methods.CreateAppointments.CreateInvocation()
                End Function

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties

                Public Shared ReadOnly AddAll As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "AddAll",
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddAll_Stub,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddAll_CanInvoke,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddAll_InvokeMethod)
                Private Shared Sub _AddAll_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AddAllMethod, sf)
                End Sub
                Private Shared Function _AddAll_CanInvoke(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object), ex As Global.System.Exception) As Global.System.Exception
                    Dim result = True
                    d.Screen.AddAll_CanExecute(result)
                    Return If(result, Nothing, ex)
                End Function
                Private Shared Sub _AddAll_InvokeMethod(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object))
                    d.Screen.AddAll_Execute()
                End Sub

                Public Shared ReadOnly AddCustomers As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "AddCustomers",
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddCustomers_Stub,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddCustomers_CanInvoke,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddCustomers_InvokeMethod)
                Private Shared Sub _AddCustomers_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AddCustomersMethod, sf)
                End Sub
                Private Shared Function _AddCustomers_CanInvoke(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object), ex As Global.System.Exception) As Global.System.Exception
                    Dim result = True
                    d.Screen.AddCustomers_CanExecute(result)
                    Return If(result, Nothing, ex)
                End Function
                Private Shared Sub _AddCustomers_InvokeMethod(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object))
                    d.Screen.AddCustomers_Execute()
                End Sub

                Public Shared ReadOnly AddEmployees As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "AddEmployees",
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddEmployees_Stub,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddEmployees_CanInvoke,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddEmployees_InvokeMethod)
                Private Shared Sub _AddEmployees_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AddEmployeesMethod, sf)
                End Sub
                Private Shared Function _AddEmployees_CanInvoke(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object), ex As Global.System.Exception) As Global.System.Exception
                    Dim result = True
                    d.Screen.AddEmployees_CanExecute(result)
                    Return If(result, Nothing, ex)
                End Function
                Private Shared Sub _AddEmployees_InvokeMethod(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object))
                    d.Screen.AddEmployees_Execute()
                End Sub

                Public Shared ReadOnly AddStates As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "AddStates",
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddStates_Stub,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddStates_CanInvoke,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddStates_InvokeMethod)
                Private Shared Sub _AddStates_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AddStatesMethod, sf)
                End Sub
                Private Shared Function _AddStates_CanInvoke(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object), ex As Global.System.Exception) As Global.System.Exception
                    Dim result = True
                    d.Screen.AddStates_CanExecute(result)
                    Return If(result, Nothing, ex)
                End Function
                Private Shared Sub _AddStates_InvokeMethod(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object))
                    d.Screen.AddStates_Execute()
                End Sub

                Public Shared ReadOnly AddUsers As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "AddUsers",
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddUsers_Stub,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddUsers_CanInvoke,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._AddUsers_InvokeMethod)
                Private Shared Sub _AddUsers_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._AddUsersMethod, sf)
                End Sub
                Private Shared Function _AddUsers_CanInvoke(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object), ex As Global.System.Exception) As Global.System.Exception
                    Dim result = True
                    d.Screen.AddUsers_CanExecute(result)
                    Return If(result, Nothing, ex)
                End Function
                Private Shared Sub _AddUsers_InvokeMethod(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object))
                    d.Screen.AddUsers_Execute()
                End Sub

                Public Shared ReadOnly CreateAppointments As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Entry( _
                    "CreateAppointments",
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._CreateAppointments_Stub,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._CreateAppointments_CanInvoke,
                    AddressOf __CreateSampleData.DetailsClass.MethodSetProperties._CreateAppointments_InvokeMethod)
                Private Shared Sub _CreateAppointments_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __CreateSampleData.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethod(Of __CreateSampleData, __CreateSampleData.DetailsClass).Data), d As __CreateSampleData.DetailsClass, sf As Object)
                    c(d, d._CreateAppointmentsMethod, sf)
                End Sub
                Private Shared Function _CreateAppointments_CanInvoke(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object), ex As Global.System.Exception) As Global.System.Exception
                    Dim result = True
                    d.Screen.CreateAppointments_CanExecute(result)
                    Return If(result, Nothing, ex)
                End Function
                Private Shared Sub _CreateAppointments_InvokeMethod(d As __CreateSampleData.DetailsClass, args As Global.System.Collections.ObjectModel.ReadOnlyCollection(Of Object))
                    d.Screen.CreateAppointments_Execute()
                End Sub

            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class AppointmentDetail
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __AppointmentDetail, __AppointmentDetail.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New(ByVal AppointmentId As Integer)
            MyBase.New("LightSwitchApplication:AppointmentDetail")
                Me.AppointmentId = AppointmentId
            __AppointmentDetail.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance(ByVal AppointmentId As Integer) As AppointmentDetail
            Return New __AppointmentDetail( _
                        AppointmentId _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AppointmentDetail_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AppointmentDetail_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AppointmentDetail_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AppointmentDetail_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AppointmentDetail_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AppointmentDetail_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AppointmentDetail_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub Appointment_Changed()
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointment_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub AppointmentId_Changed()
        End Sub

        Partial Private Sub Rooms_SelectionChanged()
        End Sub

        Partial Private Sub Rooms_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Rooms_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub AvailableEmployees_SelectionChanged()
        End Sub

        Partial Private Sub AvailableEmployees_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AvailableEmployees_Loaded(ByVal succeeded As Boolean)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Appointment As Global.LightSwitchApplication.Appointment
            Get
                Return __AppointmentDetail.DetailsClass.GetValue(Me, __AppointmentDetail.DetailsClass.PropertySetProperties.Appointment)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointment_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property AppointmentId As Integer
            Get
                Return __AppointmentDetail.DetailsClass.GetValue(Me, __AppointmentDetail.DetailsClass.PropertySetProperties.AppointmentId)
            End Get
            Set(ByVal value As Integer)
                __AppointmentDetail.DetailsClass.SetValue(Me, __AppointmentDetail.DetailsClass.PropertySetProperties.AppointmentId, value)
            End Set
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AppointmentId_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the Rooms visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Rooms As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Room)
            Get
                Return __AppointmentDetail.DetailsClass.GetValue(Me, __AppointmentDetail.DetailsClass.PropertySetProperties.Rooms)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Rooms_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the AvailableEmployees visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property AvailableEmployees As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.Employee)
            Get
                Return __AppointmentDetail.DetailsClass.GetValue(Me, __AppointmentDetail.DetailsClass.PropertySetProperties.AvailableEmployees)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub AvailableEmployees_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, __AppointmentDetail.DetailsClass.PropertySet, __AppointmentDetail.DetailsClass.CommandSet, __AppointmentDetail.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __AppointmentDetail.DetailsClass.PropertySetProperties.Appointment
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __AppointmentDetailEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __AppointmentDetail, __AppointmentDetail.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __AppointmentDetail, __AppointmentDetail.DetailsClass).Entry( _
                    AddressOf __AppointmentDetail.DetailsClass.__AppointmentDetail_InvokeInitializeDataWorkspace,
                    AddressOf __AppointmentDetail.DetailsClass.__AppointmentDetail_InvokeSavingEvent,
                    AddressOf __AppointmentDetail.DetailsClass.__AppointmentDetail_InvokeSavedEvent,
                    AddressOf __AppointmentDetail.DetailsClass.__AppointmentDetail_InvokeClosingEvent,
                    AddressOf __AppointmentDetail.DetailsClass.__AppointmentDetail_InvokeCreated,
                    AddressOf __AppointmentDetail.DetailsClass.__AppointmentDetail_InvokeActivated,
                    AddressOf __AppointmentDetail.DetailsClass.__AppointmentDetail_InvokeSaveErrorEvent)
            Private Shared Sub __AppointmentDetail_InvokeInitializeDataWorkspace(s As __AppointmentDetail, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.AppointmentDetail_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __AppointmentDetail_InvokeSavingEvent(s As __AppointmentDetail) As Boolean
                Dim handled = False
                s.AppointmentDetail_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __AppointmentDetail_InvokeSavedEvent(s As __AppointmentDetail)
                s.AppointmentDetail_Saved()
            End Sub
            Private Shared Function __AppointmentDetail_InvokeClosingEvent(s As __AppointmentDetail) As Boolean
                Dim cancel = False
                s.AppointmentDetail_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __AppointmentDetail_InvokeCreated(s As __AppointmentDetail)
                s.AppointmentDetail_Created()
            End Sub
            Private Shared Sub __AppointmentDetail_InvokeActivated(s As __AppointmentDetail)
                s.AppointmentDetail_Activated()
            End Sub
            Private Shared Function __AppointmentDetail_InvokeSaveErrorEvent(s As __AppointmentDetail, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.AppointmentDetail_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __AppointmentDetail.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __AppointmentDetail.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __AppointmentDetail.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            Private Function RoomsQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                If Me.Screen.Appointment Is Nothing Then
                    Return Nothing
                End If

                Dim loader As Global.Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Room) = _
                    DirectCast(DirectCast(Me.Screen.Appointment.Details.Properties.Rooms, Global.Microsoft.LightSwitch.Details.ILoadableProperty).Loader, Global.Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Room))
                If loader Is Nothing Then
                    Return Nothing
                End If

                Return loader
            End Function

            Private Function AvailableEmployeesQuery(ByVal StartTime As Global.System.Nullable(Of Date), ByVal EndTime As Global.System.Nullable(Of Date)) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                Return Me.Screen.DataWorkspace.ApplicationData.AvailableEmployees(StartTime, EndTime)
            End Function

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Appointment As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Appointment).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AppointmentId As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Integer).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Rooms As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Room).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _AvailableEmployees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Employee).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __AppointmentDetail, __AppointmentDetail.DetailsClass)

                Public ReadOnly Property Appointment As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Appointment)
                    Get
                        Return DirectCast(MyBase.GetItem(__AppointmentDetail.DetailsClass.PropertySetProperties.Appointment), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Appointment))
                    End Get
                End Property

                Public ReadOnly Property AppointmentId As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Integer)
                    Get
                        Return DirectCast(MyBase.GetItem(__AppointmentDetail.DetailsClass.PropertySetProperties.AppointmentId), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Integer))
                    End Get
                End Property

                Public ReadOnly Property Rooms As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Room)
                    Get
                        Return DirectCast(MyBase.GetItem(__AppointmentDetail.DetailsClass.PropertySetProperties.Rooms), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Room))
                    End Get
                End Property

                Public ReadOnly Property AvailableEmployees As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Employee)
                    Get
                        Return DirectCast(MyBase.GetItem(__AppointmentDetail.DetailsClass.PropertySetProperties.AvailableEmployees), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Employee))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __AppointmentDetail, __AppointmentDetail.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __AppointmentDetail, __AppointmentDetail.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly Appointment As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Appointment).Entry( _
                    "Appointment",
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Appointment_Stub,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Appointment_Validate,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Appointment_CreateQuery,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Appointment_OnValueChanged,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Appointment_OnLoaded)
                Private Shared Sub _Appointment_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __AppointmentDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Appointment).Data), d As __AppointmentDetail.DetailsClass, sf As Object)
                    c(d, d._Appointment, sf)
                End Sub
                Private Shared Sub _Appointment_Validate(s As __AppointmentDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Appointment_Validate(r)
                End Sub
                Private Shared Function _Appointment_CreateQuery(d As __AppointmentDetail.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return Nothing
                End Function
                Private Shared Sub _Appointment_OnValueChanged(s As __AppointmentDetail)
                    s.Appointment_Changed()
                End Sub
                Private Shared Sub _Appointment_OnLoaded(s As __AppointmentDetail, succeeded As Boolean)
                    s.Appointment_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly AppointmentId As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Integer).Entry( _
                    "AppointmentId",
                    False,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._AppointmentId_Stub,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._AppointmentId_Validate,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._AppointmentId_OnValueChanged)
                Private Shared Sub _AppointmentId_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __AppointmentDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Integer).Data), d As __AppointmentDetail.DetailsClass, sf As Object)
                    c(d, d._AppointmentId, sf)
                End Sub
                Private Shared Sub _AppointmentId_Validate(s As __AppointmentDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.AppointmentId_Validate(r)
                End Sub
                Private Shared Sub _AppointmentId_OnValueChanged(s As __AppointmentDetail)
                    s.AppointmentId_Changed()
                End Sub

                Public Shared ReadOnly Rooms As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Room).Entry( _
                    "Rooms",
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Rooms_Stub,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Rooms_Validate,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Rooms_CreateQuery,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Rooms_SelectionChanged,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Rooms_OnCollectionChanged,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._Rooms_OnLoaded)
                Private Shared Sub _Rooms_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __AppointmentDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Room).Data), d As __AppointmentDetail.DetailsClass, sf As Object)
                    c(d, d._Rooms, sf)
                End Sub
                Private Shared Sub _Rooms_Validate(s As __AppointmentDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Rooms_Validate(r)
                End Sub
                Private Shared Function _Rooms_CreateQuery(d As __AppointmentDetail.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.RoomsQuery()
                End Function
                Private Shared Sub _Rooms_SelectionChanged(s As __AppointmentDetail)
                    s.Rooms_SelectionChanged()
                End Sub
                Private Shared Sub _Rooms_OnCollectionChanged(s As __AppointmentDetail, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.Rooms_Changed(e)
                End Sub
                Private Shared Sub _Rooms_OnLoaded(s As __AppointmentDetail, succeeded As Boolean)
                    s.Rooms_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly AvailableEmployees As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Employee).Entry( _
                    "AvailableEmployees",
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._AvailableEmployees_Stub,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._AvailableEmployees_Validate,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._AvailableEmployees_CreateQuery,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._AvailableEmployees_SelectionChanged,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._AvailableEmployees_OnCollectionChanged,
                    AddressOf __AppointmentDetail.DetailsClass.PropertySetProperties._AvailableEmployees_OnLoaded)
                Private Shared Sub _AvailableEmployees_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __AppointmentDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __AppointmentDetail, __AppointmentDetail.DetailsClass, Global.LightSwitchApplication.Employee).Data), d As __AppointmentDetail.DetailsClass, sf As Object)
                    c(d, d._AvailableEmployees, sf)
                End Sub
                Private Shared Sub _AvailableEmployees_Validate(s As __AppointmentDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.AvailableEmployees_Validate(r)
                End Sub
                Private Shared Function _AvailableEmployees_CreateQuery(d As __AppointmentDetail.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.AvailableEmployeesQuery(DirectCast(args(0), Global.System.Nullable(Of Date)), DirectCast(args(1), Global.System.Nullable(Of Date)))
                End Function
                Private Shared Sub _AvailableEmployees_SelectionChanged(s As __AppointmentDetail)
                    s.AvailableEmployees_SelectionChanged()
                End Sub
                Private Shared Sub _AvailableEmployees_OnCollectionChanged(s As __AppointmentDetail, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.AvailableEmployees_Changed(e)
                End Sub
                Private Shared Sub _AvailableEmployees_OnLoaded(s As __AppointmentDetail, succeeded As Boolean)
                    s.AvailableEmployees_Loaded(succeeded)
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties
            End Class

        End Class

    End Class

    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Partial Public NotInheritable Class RoomDetail
        Inherits Global.Microsoft.LightSwitch.Framework.Client.ScreenObject(Of __RoomDetail, __RoomDetail.DetailsClass)

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private Sub New(ByVal RoomId As Integer)
            MyBase.New("LightSwitchApplication:RoomDetail")
                Me.RoomId = RoomId
            __RoomDetail.DetailsClass.Initialize(Me)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        Public Shared Function CreateInstance(ByVal RoomId As Integer) As RoomDetail
            Return New __RoomDetail( _
                        RoomId _
            )
        End Function

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RoomDetail_InitializeDataWorkspace(ByVal saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RoomDetail_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RoomDetail_Activated()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RoomDetail_Saving(ByRef handled As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RoomDetail_Saved()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RoomDetail_Closing(ByRef cancel As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RoomDetail_SaveError(ByVal exception As Global.System.Exception, ByRef handled As Boolean)
        End Sub
     
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.LightSwitchApplication.Application
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(DirectCast(Me.Details, Global.Microsoft.LightSwitch.Details.Client.IScreenDetails).DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
 
        Partial Private Sub Room_Changed()
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Room_Loaded(ByVal succeeded As Boolean)
        End Sub

        Partial Private Sub RoomId_Changed()
        End Sub

        Partial Private Sub InventoryItems_SelectionChanged()
        End Sub

        Partial Private Sub InventoryItems_Changed(ByVal e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
        End Sub

        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub InventoryItems_Loaded(ByVal succeeded As Boolean)
        End Sub

        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Room As Global.LightSwitchApplication.Room
            Get
                Return __RoomDetail.DetailsClass.GetValue(Me, __RoomDetail.DetailsClass.PropertySetProperties.Room)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Room_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property RoomId As Integer
            Get
                Return __RoomDetail.DetailsClass.GetValue(Me, __RoomDetail.DetailsClass.PropertySetProperties.RoomId)
            End Get
            Set(ByVal value As Integer)
                __RoomDetail.DetailsClass.SetValue(Me, __RoomDetail.DetailsClass.PropertySetProperties.RoomId, value)
            End Set
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RoomId_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        ''' <summary>
        ''' Gets the InventoryItems visual collection. The collection contains all records currently shown on the respective list or grid control.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property InventoryItems As Global.Microsoft.LightSwitch.Framework.Client.VisualCollection(Of Global.LightSwitchApplication.InventoryItem)
            Get
                Return __RoomDetail.DetailsClass.GetValue(Me, __RoomDetail.DetailsClass.PropertySetProperties.InventoryItems)
            End Get
        End Property
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub InventoryItems_Validate(ByVal results As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
        End Sub
 
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __RoomDetail, __RoomDetail.DetailsClass, __RoomDetail.DetailsClass.PropertySet, __RoomDetail.DetailsClass.CommandSet, __RoomDetail.DetailsClass.MethodSet)

            Shared Sub New()
                Dim initializePropertyEntry = __RoomDetail.DetailsClass.PropertySetProperties.Room
            End Sub

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __RoomDetailEntry As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __RoomDetail, __RoomDetail.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenDetails(Of __RoomDetail, __RoomDetail.DetailsClass).Entry( _
                    AddressOf __RoomDetail.DetailsClass.__RoomDetail_InvokeInitializeDataWorkspace,
                    AddressOf __RoomDetail.DetailsClass.__RoomDetail_InvokeSavingEvent,
                    AddressOf __RoomDetail.DetailsClass.__RoomDetail_InvokeSavedEvent,
                    AddressOf __RoomDetail.DetailsClass.__RoomDetail_InvokeClosingEvent,
                    AddressOf __RoomDetail.DetailsClass.__RoomDetail_InvokeCreated,
                    AddressOf __RoomDetail.DetailsClass.__RoomDetail_InvokeActivated,
                    AddressOf __RoomDetail.DetailsClass.__RoomDetail_InvokeSaveErrorEvent)
            Private Shared Sub __RoomDetail_InvokeInitializeDataWorkspace(s As __RoomDetail, saveChangesTo As Global.System.Collections.Generic.List(Of Global.Microsoft.LightSwitch.IDataService))
                s.RoomDetail_InitializeDataWorkspace(saveChangesTo)
            End Sub
            Private Shared Function __RoomDetail_InvokeSavingEvent(s As __RoomDetail) As Boolean
                Dim handled = False
                s.RoomDetail_Saving(handled)
                Return handled
            End Function
            Private Shared Sub __RoomDetail_InvokeSavedEvent(s As __RoomDetail)
                s.RoomDetail_Saved()
            End Sub
            Private Shared Function __RoomDetail_InvokeClosingEvent(s As __RoomDetail) As Boolean
                Dim cancel = False
                s.RoomDetail_Closing(cancel)
                Return cancel
            End Function
            Private Shared Sub __RoomDetail_InvokeCreated(s As __RoomDetail)
                s.RoomDetail_Created()
            End Sub
            Private Shared Sub __RoomDetail_InvokeActivated(s As __RoomDetail)
                s.RoomDetail_Activated()
            End Sub
            Private Shared Function __RoomDetail_InvokeSaveErrorEvent(s As __RoomDetail, ex As Global.System.Exception) As Boolean
                Dim handled = False
                s.RoomDetail_SaveError(ex, handled)
                Return handled
            End Function

            Public Sub New()
                MyBase.New()
            End Sub

            Public Shadows ReadOnly Property Properties As __RoomDetail.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property

            Public Shadows ReadOnly Property Commands As __RoomDetail.DetailsClass.CommandSet
                Get
                    Return MyBase.Commands
                End Get
            End Property

            Public Shadows ReadOnly Property Methods As __RoomDetail.DetailsClass.MethodSet
                Get
                    Return MyBase.Methods
                End Get
            End Property

            Private Function InventoryItemsQuery() As Global.Microsoft.LightSwitch.IDataServiceQueryable
                If Me.Screen.Room Is Nothing Then
                    Return Nothing
                End If

                Dim loader As Global.Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.InventoryItem) = _
                    DirectCast(DirectCast(Me.Screen.Room.Details.Properties.InventoryItems, Global.Microsoft.LightSwitch.Details.ILoadableProperty).Loader, Global.Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.InventoryItem))
                If loader Is Nothing Then
                    Return Nothing
                End If

                Return loader
            End Function

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _Room As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Global.LightSwitchApplication.Room).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _RoomId As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Integer).Data

            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)>
            Private _InventoryItems As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Global.LightSwitchApplication.InventoryItem).Data

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenPropertySet(Of __RoomDetail, __RoomDetail.DetailsClass)

                Public ReadOnly Property Room As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Global.LightSwitchApplication.Room)
                    Get
                        Return DirectCast(MyBase.GetItem(__RoomDetail.DetailsClass.PropertySetProperties.Room), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Global.LightSwitchApplication.Room))
                    End Get
                End Property

                Public ReadOnly Property RoomId As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Integer)
                    Get
                        Return DirectCast(MyBase.GetItem(__RoomDetail.DetailsClass.PropertySetProperties.RoomId), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Integer))
                    End Get
                End Property

                Public ReadOnly Property InventoryItems As Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Global.LightSwitchApplication.InventoryItem)
                    Get
                        Return DirectCast(MyBase.GetItem(__RoomDetail.DetailsClass.PropertySetProperties.InventoryItems), Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Global.LightSwitchApplication.InventoryItem))
                    End Get
                End Property

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class CommandSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCommandSet(Of __RoomDetail, __RoomDetail.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class MethodSet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenMethodSet(Of __RoomDetail, __RoomDetail.DetailsClass)
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class PropertySetProperties

                Public Shared ReadOnly Room As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Global.LightSwitchApplication.Room).Entry( _
                    "Room",
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._Room_Stub,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._Room_Validate,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._Room_CreateQuery,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._Room_OnValueChanged,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._Room_OnLoaded)
                Private Shared Sub _Room_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __RoomDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenReferenceProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Global.LightSwitchApplication.Room).Data), d As __RoomDetail.DetailsClass, sf As Object)
                    c(d, d._Room, sf)
                End Sub
                Private Shared Sub _Room_Validate(s As __RoomDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.Room_Validate(r)
                End Sub
                Private Shared Function _Room_CreateQuery(d As __RoomDetail.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return Nothing
                End Function
                Private Shared Sub _Room_OnValueChanged(s As __RoomDetail)
                    s.Room_Changed()
                End Sub
                Private Shared Sub _Room_OnLoaded(s As __RoomDetail, succeeded As Boolean)
                    s.Room_Loaded(succeeded)
                End Sub

                Public Shared ReadOnly RoomId As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Integer).Entry( _
                    "RoomId",
                    False,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._RoomId_Stub,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._RoomId_Validate,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._RoomId_OnValueChanged)
                Private Shared Sub _RoomId_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __RoomDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenLocalProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Integer).Data), d As __RoomDetail.DetailsClass, sf As Object)
                    c(d, d._RoomId, sf)
                End Sub
                Private Shared Sub _RoomId_Validate(s As __RoomDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.RoomId_Validate(r)
                End Sub
                Private Shared Sub _RoomId_OnValueChanged(s As __RoomDetail)
                    s.RoomId_Changed()
                End Sub

                Public Shared ReadOnly InventoryItems As New Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Global.LightSwitchApplication.InventoryItem).Entry( _
                    "InventoryItems",
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._InventoryItems_Stub,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._InventoryItems_Validate,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._InventoryItems_CreateQuery,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._InventoryItems_SelectionChanged,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._InventoryItems_OnCollectionChanged,
                    AddressOf __RoomDetail.DetailsClass.PropertySetProperties._InventoryItems_OnLoaded)
                Private Shared Sub _InventoryItems_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __RoomDetail.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.Client.ScreenCollectionProperty(Of __RoomDetail, __RoomDetail.DetailsClass, Global.LightSwitchApplication.InventoryItem).Data), d As __RoomDetail.DetailsClass, sf As Object)
                    c(d, d._InventoryItems, sf)
                End Sub
                Private Shared Sub _InventoryItems_Validate(s As __RoomDetail, r As Global.Microsoft.LightSwitch.Framework.Client.ScreenValidationResultsBuilder)
                    s.InventoryItems_Validate(r)
                End Sub
                Private Shared Function _InventoryItems_CreateQuery(d As __RoomDetail.DetailsClass, args As Object()) As Global.Microsoft.LightSwitch.IDataServiceQueryable
                    Return d.InventoryItemsQuery()
                End Function
                Private Shared Sub _InventoryItems_SelectionChanged(s As __RoomDetail)
                    s.InventoryItems_SelectionChanged()
                End Sub
                Private Shared Sub _InventoryItems_OnCollectionChanged(s As __RoomDetail, e As Global.System.Collections.Specialized.NotifyCollectionChangedEventArgs)
                    s.InventoryItems_Changed(e)
                End Sub
                Private Shared Sub _InventoryItems_OnLoaded(s As __RoomDetail, succeeded As Boolean)
                    s.InventoryItems_Loaded(succeeded)
                End Sub

            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class CommandSetProperties
            End Class

            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend NotInheritable Class MethodSetProperties
            End Class

        End Class

    End Class

End Namespace