You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Private pictures As Dictionary(Of String, DXImage)
Public Sub New(ByVal sheet As Worksheet)
pictures = GetPictures(sheet)
End Sub
Public Function ConvertToObject(ByVal value As CellValue, ByVal requiredType As Type, ByVal columnIndex As Integer) As Object Implements IBindingRangeValueConverter.ConvertToObject
If columnIndex = 13 Then
Dim pic As DXImage = Nothing
If pictures.TryGetValue(value.TextValue, pic) Then
Return pic
End If
End If
Return value
End Function
Public Function TryConvertFromObject(ByVal value As Object) As CellValue Implements IBindingRangeValueConverter.TryConvertFromObject
Return CellValue.Empty
End Function
Public Function GetPictures(ByVal sheet As Worksheet) As Dictionary(Of String, DXImage)
Dim employeePictures As Dictionary(Of String, DXImage) = New Dictionary(Of String, DXImage)()