How standfacilerep/standfacile works
Purpose and topology
StandFacile is a Windows desktop suite for stand/point-of-sale operations. The solution contains four executable applications: the primary StandFacile client, kitchen display/client, monitoring client, and order client. Shared code centralizes domain, persistence, networking, printing, logging, and dialogs.
Paths: StandFacile.sln, StandFacile/src/StandFacile.csproj, StandCucina/src/StandCucina.csproj, StandMonitor/src/StandMonitor.csproj, StandOrdini/src/StandOrdini.csproj.
Application entry points and UI boundary
Each application is a C# WinForms executable: Program.cs starts a MainForm, which owns user-driven control flow. Designer/resource files are paired with forms, so UI behavior and layout are tightly coupled rather than separated into a web or service layer.
Paths: StandFacile/src/Program.cs, StandFacile/src/MainForm.cs, StandCucina/src/Program.cs, StandMonitor/src/MainForm.cs, StandOrdini/src/MainForm.cs.
Primary POS data management
DataManager is the central StandFacile data-management layer and operates on the SF_Data structure. It has dedicated persistence load/save extensions for the price-list/data model, making it the main boundary between POS UI state and storage/network operations.
Paths: StandFacile/src/DataManager.cs, StandFacile/src/DataManager_PL_Load.cs, StandFacile/src/DataManager_PL_Save.cs, StandFacile/src/Define.cs.
Database abstraction and storage backends
The shared database interface works on DB_Data and selects among local SQLite and remote MySQL/PostgreSQL implementations. Database-specific files are partitioned further by load, save, order, and monitor operations; callers should depend on the interface/common layer rather than a concrete backend.
Paths: StandCommonSrc/dBaseIntf.cs, StandCommonSrc/dBaseIntf_ql.cs, StandCommonSrc/dBaseIntf_my.cs, StandCommonSrc/dBaseIntf_pg.cs, StandCommonSrc/dBaseIntf_ord_pg.cs.
Remote database tunnel and trust boundary
StandFacile includes a MySQL remote-tunnel component for an externally hosted web database. Per the README, it uses HTTP tunneling to a PHP endpoint and requires its cipher key to match the remote tunnel. Cryptographic keys and the web-server address are intended to live in the root safe-file source; the README calls this StandCommonSafe.cs, while the repository contains Common_Safe.cs.
Paths: StandFacile/src/dBaseTunnel_my.cs, Common_Safe.cs, StandCommonSrc/Common_CL.cs.
Inter-application operations and monitoring
Orders appear to flow from the primary client through shared database/network facilities to specialized order, kitchen, and monitoring clients. Monitoring/order views are explicit application responsibilities, while UDP support provides an additional local-network communication mechanism.
Paths: StandOrdini/src/MainForm.cs, StandCucina/src/MainForm.cs, StandMonitor/src/VisOrdiniTableFrm.cs, StandCommonSrc/UDP_service.cs, StandCommonSrc/LogServer.cs.
Output devices and operational configuration
Receipt/copy generation is shared and dispatched to Windows, Epson POS, or legacy printer implementations. Configuration dialogs expose network, printer, and general settings; the deployment also requires Listino.txt beside the executable, and setup scripts package each suite program.
Paths: StandCommonSrc/ReceiptAndCopiesCommons.cs, StandCommonSrc/Printer_Windows.cs, StandCommonSrc/Printer_Epson_POS.cs, config.ini, StandFacile/Setup/StandFacile.iss.
Runtime and dependencies
The repository is a Visual Studio/.NET Framework-era C# solution using WinForms and NuGet packages. Material persistence dependencies include SQLite; remote backends are MySQL and PostgreSQL connector-based and user-installed. The README warns that updating the SQLite dotConnect Express package can introduce a license failure.
Paths: StandFacile/src/packages.config, StandFacile/src/App.config, packages/SQLite.3.13.0, packages/Newtonsoft.Json.13.0.4.
Main entry points: dBaseIntf.cs Database abstraction · StandFacile.sln StandFacile solution · StandFacile.csproj Primary POS client · MainForm.cs POS MainForm
Components 21
WinForms clients
Four desktop executables for POS operations.
- Primary POS client
StandFacile/src/StandFacile.csproj - POS startup
StandFacile/src/Program.cs - POS MainForm · Owns primary user-driven POS flow.
StandFacile/src/MainForm.cs - Kitchen client
StandCucina/src/StandCucina.csproj - Kitchen startup
StandCucina/src/Program.cs - Kitchen MainForm
StandCucina/src/MainForm.cs - Monitoring client
StandMonitor/src/StandMonitor.csproj - Monitor order view
StandMonitor/src/VisOrdiniTableFrm.cs - Order client
StandOrdini/src/StandOrdini.csproj - Orders MainForm
StandOrdini/src/MainForm.cs
Data and connectivity
Shared persistence, remote access, and local communication.
- DataManager · Manages SF_Data and price-list load/save.
StandFacile/src/DataManager.cs - SF_Data model
StandFacile/src/Define.cs - Database abstraction · Callers use common database operations instead of concrete backends.
StandCommonSrc/dBaseIntf.cs - SQLite, MySQL, PostgreSQL · Concrete local and remote load/save, order, and monitoring implementations.
StandCommonSrc/dBaseIntf_ql.cs - MySQL HTTP tunnel · Connects to the externally hosted web database through a PHP endpoint.
StandFacile/src/dBaseTunnel_my.cs - Safe credentials · Supplies tunnel cipher key and web-server address.
Common_Safe.cs - UDP and logging · Provides local-network messaging and log-server support.
StandCommonSrc/UDP_service.cs
Operations support
Output, configuration, and deployment concerns.
- Receipt printing · Routes receipts and copies to Windows, Epson POS, or legacy printers.
StandCommonSrc/ReceiptAndCopiesCommons.cs - Runtime configuration · Configuration dialogs and deployment require settings plus Listino.txt.
config.ini - POS installer
StandFacile/Setup/StandFacile.iss
Other components
- StandFacile solution
StandFacile.sln
Connections 21
- StandFacile solution → Primary POS client: builds
- StandFacile solution → Kitchen client: builds
- StandFacile solution → Monitoring client: builds
- StandFacile solution → Order client: builds
- Primary POS client → POS startup: starts
- POS startup → POS MainForm: opens
- Kitchen client → Kitchen startup: starts
- Kitchen startup → Kitchen MainForm: opens
- POS MainForm → DataManager: manages data through
- DataManager → SF_Data model: operates on
- DataManager → Database abstraction: persists through
- Database abstraction → SQLite, MySQL, PostgreSQL: selects
- SQLite, MySQL, PostgreSQL → MySQL HTTP tunnel: remote MySQL via
- MySQL HTTP tunnel → Safe credentials: uses key and endpoint
- Orders MainForm → Database abstraction: reads and writes orders
- Kitchen MainForm → Database abstraction: consumes orders
- Monitor order view → Database abstraction: monitors orders
- Orders MainForm → UDP and logging: local notifications
- POS MainForm → Receipt printing: prints receipts
- Primary POS client → Runtime configuration: loads
- POS installer → Primary POS client: packages