Sub CC_Result (Success As Boolean, Dir As String, FileName As String)
Dim bmpSample As Bitmap = Null
If Not(Success) Then
ReturnImage(bmpSample)
Else
Dim Error As Boolean = False
If Dir <> "" Or FileName <> "" Then
Try
bmpSample = LoadBitmapSample(Dir, FileName, 100%x, mWorkingRoomHeight)
Catch
Error = True
End Try
If Error Then
Try
bmpSample = LoadBitmapSample(Dir, GetPathFromContentResult(FileName), 100%x, mWorkingRoomHeight)
Catch
Log(LastException)
End Try
End If
End If
If Error Then
ReturnImage(bmpSample)
Else
ImageChosen
End If
End If
End Sub