Sub PanelBrowse_Click
PhotoLoaded = False
Dim CC As ContentChooser
CC.Initialize("CC")
CC.Show("image/*", "Select an image!")
End Sub
Sub CC_Result(Success As Boolean, Dir As String, FileName As String)
If Success Then
Msgbox2Async("Image " & FileName & " was selected!","Atentie!","Ok","","",LoadBitmap(File.DirAssets,"exclamation.png"),False)
File.Copy(Dir, FileName, File.DirInternal, "sesizare.jpg")
ImageViewPoza.Bitmap = LoadBitmap(Dir, FileName)
PhotoLoaded = True
Else
Msgbox2Async("No image was selected!","Atenttion!","Ok","","",LoadBitmap(File.DirAssets,"exclamation.png"),False)
End If
End Sub