Public Sub Initialize
Icon.Initialize("Icon")
End Sub
Public Sub CreateNew( ID_v As Int, Group_v As String, Image_file_v As String)
If Image_file_v.Length <> 0 Then
Icon.SetImage(fx.LoadImage(File.DirApp & "/Images",Image_file_v))
Image_file = Image_file_v
End If
ID = ID_v
Group = Group_v
End Sub
Public Sub CreateFromMap(m As Map)
Dim Image_file_v As String = m.Get("image_file")
Dim Group_v As String = m.Get("group")
Dim ID_v As Int = m.Get("id")
CreateNew(ID_v, Group_v, Image_file_v)
End Sub
Public Sub ExportToMap As Map
Dim m As Map
m = CreateMap("image_file": Image_file, "id": ID, "group": Group)
Return m
End Sub