-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataItem.vb
More file actions
23 lines (16 loc) · 740 Bytes
/
DataItem.vb
File metadata and controls
23 lines (16 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Imports DevExpress.Mvvm.POCO
Namespace FunctionBindingExample.Common
Public Class DataItem
Protected Sub New(ByVal [date] As Date, ByVal valueSummary As Double, ByVal stageName As String)
Me.Date = [date]
Me.ValueSummary = valueSummary
Me.StageName = stageName
End Sub
Public Shared Function Create(ByVal [date] As Date, ByVal valueSummary As Double, ByVal stageName As String) As DataItem
Return ViewModelSource.Create(Function() New DataItem([date], valueSummary, stageName))
End Function
Public Property [Date] As Date
Public Property ValueSummary As Double
Public Property StageName As String
End Class
End Namespace