Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Property UserDetails() As ObservableCollection(Of tbl_Main_Timer)
- Get
- Return _UserDetails
- End Get
- Set(value As ObservableCollection(Of tbl_Main_Timer))
- _UserDetails = value
- End Set
- End Property
- Public Property FillDataGrid() As RelayCommand
- Get
- _FillDatagrid = New RelayCommand(AddressOf FillProductivityEE)
- Return _FillDatagrid
- End Get
- Set(value As RelayCommand)
- _FillDatagrid = value
- RaisePropertyChanged("FillDataGrid")
- End Set
- End Property
- Public Sub FillProductivityEE()
- Using entityconn As New TimerConn()
- Dim result = (From f In entityconn.tbl_Main_Timer Where f.Enumber = Enumber AndAlso f.LogDate = "2015-07-01" Order By f.ID).ToList
- For Each ac In result
- _UserDetails.Add(ac)
- Next
- End Using
- End Sub
- ItemsSource="{Binding EmployeeViewM.UserView}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement