The user interface for administering units of measure is opened by clicking on the 'Administrator' button on the toolbar and selecting the 'Measure unit' option. The user interface consists of a table and a toolbar, located on the right.
The table consists of the following columns:
The toolbar consists of the following buttons 'New', 'Edit', 'Delete', 'Save' and 'Load from Repository'.
Setting up a new unit of measurement
Clicking on the 'New' button adds a new unit of measure with an automatically generated ID and name, and an indication that it is not active (that it cannot be selected), and opens a window for editing the newly entered unit of measure.
Editing unit data
Clicking on the 'Edit' button, next to the previously marked unit of measure within the table, opens the 'Edit selected measure unit' window in which the data is edited.
This window consists of a data entry form that contains the following fields:
In the lower right corner of the window there are two buttons - 'OK' and 'Cancel'. Pressing the 'OK' button saves the entered changes, while pressing the 'Cancel' closes the window without changes.
Delete the unit of measure
The unit of measurement, once highlighted within the table, can be deleted by pressing the 'Delete' button on the toolbar. Before deleting, the application will ask you to confirm whether we want to delete that unit of measure safely. Pressing the 'Yes' button confirms the deletion, while pressing 'Cancel' closes the window without changes.
Saving and loading
All unit changes are saved by pressing the 'Save' button on the toolbar.
By pressing the 'Load from repository' button, the data on the units of measurement that were last saved are loaded. Before loading, the application will ask for confirmation to discard all changes and load the last saved state. Pressing the 'Yes' button will load the last saved state, while pressing the 'Cancel' window closes and nothing changes.