Click here to Skip to main content
15,886,693 members
Articles / Programming Languages / Visual Basic

PeopleTrac – People Management for Not-For-Profit Organizations

Rate me:
Please Sign up or sign in to vote.
4.91/5 (10 votes)
3 Jan 2012CPOL6 min read 24K   877   13  
Demonstrates several LightSwitch capabilities including WCF-RIA services, Native SQL, Name and Addres merge purge

Namespace LightSwitchApplication

    Public Class CreateAndEditPeople

        Private Sub CreateAndEditPeople_InitializeDataWorkspace(saveChangesTo As System.Collections.Generic.List(Of Microsoft.LightSwitch.IDataService))
            ' Write your code here.
            If Me.PersonID.HasValue Then
                Me.PersonProperty = Me.Person
            Else
                Me.PersonProperty = New Person()
            End If

        End Sub

        Private Sub CreateAndEditPeople_Saved()
            ' Write your code here.
            Me.Close(False)
            Application.Current.ShowDefaultScreen(Me.PersonProperty)
        End Sub

        Private Sub AddNewSubscription_Execute()
            ' Write your code here.
            Dim myID As Integer
            myID = Me.PersonID
            ShowMessageBox("Me.PersonID:  " & Me.PersonID & vbLf & "MyID: " & myID)

            Me.Application.ShowSubscriptionDetailA(myID)
        End Sub

        Private Sub SubscriptionsAddNew_CanExecute(ByRef result As Boolean)
            ' Write your code here.

        End Sub

        

        Private Sub SubscriptionsEditSelected_CanExecute(ByRef result As Boolean)
            ' Write your code here.

        End Sub

        Private Sub SubscriptionsEditSelected_Execute()
            ' Write your code here.

        End Sub
    End Class

End Namespace

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions