
M500 USER MANUAL AND PROGRAMMER SDK
Page 19
8.
M500
D
EMO APP
The C# M500APP project contains the Main app and GUI. It creates the “M500.exe” executable.
The modules in this project are:
FormM500demo.cs
FormGUI.cs
FormUpdate.cs
Settings.cs
MagWnd.cs
UsrImage.cs
AboutForm.cs
8.1
F
ORM
M500
DEMO
.
CS
This is the main form and contains the code that interfaces with the M500 C# API. It calls the Init() function
which initializes the M500DLL which then creates its own thread to communicate with the M500 and
automatically transfer images without using the applications UI thread.
8.2
F
ORM
GUI.
CS
This module contains GUI code that was separated from the FormM500demo.cs module to simplify it. It
contains code to Open and Save a TIFF file and update the magnify window. It does not interface with the
M500 so one does not need to understand this code to interface with the M500.
8.3
F
ORM
U
PDATE
.
CS
This module contains subroutines that update the GUI.
8.4
M
AG
W
ND
.
CS
This module manages the floating magnifier window and is not needed by the developer to interface with
the M500.
8.5
U
SR
I
MAGE
.
CS
This module contains code to support re-sizing the bitmaps windows as the size of the main window
changes and is not needed by the developer to interface with the M500.
8.6
A
BOUT
F
ORM
.
CS
This module is used to display the version of application, C# API assembly, M500 DLL, barcode decoder,
and M500 firmware.