我有一个包含以下内容的类:
Public Class ConflictClass
Public Sub New(ByVal emp As String, ByVal cli As String, ByVal serv As String, ByVal tme As String, ByVal dte As String, ByVal dy As String)
_emp = emp
_cli = cli
_serv = serv
_tme = tme
_dte = dte
_dy = dy
End Sub
Private Shared _emp As String
Public Shared Property employee As String
Get
Return _emp
End Get
Set(value As String)
_emp = value.ToString.Trim
End Set
End Property
Private Shared _cli As String
Public Shared Property client As String
Get
Return _cli
End Get
Set(value As String)
_cli = value.ToString.Trim
End Set
End Property
Private Shared _serv As String
Public Shared Property service As String
Get
Return _serv
End Get
Set(value As String)
_serv = value.ToString.Trim
End Set
End Property
Private Shared _tme As String
Public Shared Property appttime As String
Get
Return _tme
End Get
Set(value As String)
_tme = value.ToString.Trim
End Set
End Property
Private Shared _dte As String
Public Shared Property apptdate As String
Get
Return _dte
End Get
Set(value As String)
_dte = value.ToString.Trim
End Set
End Property
Private Shared _dy As String
Public Shared Property apptday As String
Get
Return _dy
End Get
Set(value As String)
_dy = value.ToString.Trim
End Set
End Property
End Class
它填充在一个Windows窗体上,我试图将此类型的列表传递给另一个窗体,循环它(或将其用作数据源)并填充网格。我正在努力寻找一个这样的例子。有人可以帮忙吗?