# tzipi10/store-management-system architecture

> Architecture diagram of the GitHub repository tzipi10/store-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tzipi10/store-management-system
- Repository: https://github.com/tzipi10/store-management-system

## Overview

This is a Windows Forms store-management application. Employees enter through the home screen, choose management or checkout workflows, and use business services for customer, product, promotion, and order operations; the business layer accesses a selectable data-access implementation. The graph includes the documented XML and in-memory storage options and logging. Several UI and business modules are unsampled, so their internal calls are not asserted; dashed links mark those unverified connections.

Main entry points: [`DotNet2025_5431_1278_6870/BL/BlApi/IBl.cs`](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlApi/IBl.cs) (Business API), [`DotNet2025_5431_1278_6870/BL/BlImplementation/OrderImplementation.cs`](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlImplementation/OrderImplementation.cs) (Order pricing and stock), [`DotNet2025_5431_1278_6870/DalFacade/DalApi/IDal.cs`](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalFacade/DalApi/IDal.cs) (Data access API), [`DotNet2025_5431_1278_6870/UI/ManagerMenu.cs`](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/ManagerMenu.cs) (Manager menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Employee interface"]
  node_app["Application startup<br/>[Program.cs]"]
  node_home["Home screen<br/>[Home.cs]"]
  node_manager["Manager menu<br/>[ManagerMenu.cs]"]
  node_customer_ui["Customer management<br/>[Customers.cs]"]
  node_product_ui["Product management<br/>[Product.cs]"]
  node_sale_ui["Promotion management<br/>[Sale.cs]"]
  node_checkout_ui["Checkout<br/>[CashRegister.cs]"]
  node_order_ui["Order entry<br/>[OrderProduct.cs]"]
  node_salesperson_ui["Salesperson screen<br/>[Saleman.cs]"]
end

subgraph group_business["Business operations"]
  node_bl_api["Business API<br/>[IBl.cs]"]
  node_customer_ops["Customer operations"]
  node_product_ops["Product operations"]
  node_sale_ops["Promotion operations"]
  node_order_ops["Order pricing and stock"]
  node_bl_factory["Business factory<br/>[Factory.cs]"]
end

subgraph group_data["Data access"]
  node_dal_api["Data access API<br/>[IDal.cs]"]
  node_dal_factory["Storage selector<br/>[Factory.cs]"]
  node_memory_store[("In-memory storage<br/>[DalList.cs]")]
  node_xml_store[("XML persistence<br/>[DalXml.cs]")]
  node_xml_export["XML export<br/>[DatabaseToXml.cs]"]
end

subgraph group_support["Models and logging"]
  node_order_model["Order model<br/>[Order.cs]"]
  node_product_order_model["Order line model<br/>[ProductInOrder.cs]"]
  node_sale_order_model["Applied sale model<br/>[SaleInProduct.cs]"]
  node_conversions["Domain conversions<br/>[Tools.cs]"]
  node_logging["Log manager<br/>[LogManager.cs]"]
end

node_employee(("Store employee"))
node_log_files[("Log files")]

node_employee -.->|"starts"| node_app
node_app -->|"runs"| node_home
node_home -->|"opens"| node_manager
node_home -->|"opens"| node_salesperson_ui
node_manager -->|"opens"| node_customer_ui
node_manager -->|"opens"| node_product_ui
node_manager -->|"opens"| node_sale_ui
node_salesperson_ui -.->|"starts checkout"| node_checkout_ui
node_checkout_ui -.->|"uses"| node_order_ui
node_customer_ui -->|"calls"| node_bl_api
node_product_ui -.->|"calls"| node_bl_api
node_sale_ui -.->|"calls"| node_bl_api
node_checkout_ui -.->|"calls"| node_bl_api
node_bl_factory -.->|"provides"| node_bl_api
node_bl_api -.->|"dispatches"| node_customer_ops
node_bl_api -.->|"dispatches"| node_product_ops
node_bl_api -.->|"dispatches"| node_sale_ops
node_bl_api -.->|"dispatches"| node_order_ops
node_order_ops -->|"reads and updates"| node_dal_api
node_order_ops -->|"updates"| node_product_order_model
node_order_ops -->|"builds"| node_sale_order_model
node_order_ops -->|"prices"| node_order_model
node_conversions -.->|"converts records"| node_dal_api
node_dal_factory -->|"selects implementation"| node_dal_api
node_dal_api -->|"implemented by"| node_memory_store
node_dal_api -.->|"implemented by"| node_xml_store
node_xml_export -->|"reads records"| node_dal_factory
node_xml_export -.->|"exports XML"| node_xml_store
node_memory_store -->|"logs operations"| node_logging
node_xml_store -.->|"logs operations"| node_logging
node_logging -->|"writes"| node_log_files

click node_app "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Program.cs"
click node_home "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Home.cs"
click node_manager "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/ManagerMenu.cs"
click node_customer_ui "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Customers.cs"
click node_product_ui "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Product.cs"
click node_sale_ui "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Sale.cs"
click node_checkout_ui "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/CashRegister.cs"
click node_order_ui "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/OrderProduct.cs"
click node_salesperson_ui "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Saleman.cs"
click node_bl_api "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlApi/IBl.cs"
click node_customer_ops "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlImplementation/CustomerImplementation.cs"
click node_product_ops "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlImplementation/ProductImplementation.cs"
click node_sale_ops "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlImplementation/SaleImplementation.cs"
click node_order_ops "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlImplementation/OrderImplementation.cs"
click node_bl_factory "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlApi/Factory.cs"
click node_dal_api "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalFacade/DalApi/IDal.cs"
click node_dal_factory "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalFacade/DalApi/Factory.cs"
click node_memory_store "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalList/DalList.cs"
click node_xml_store "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalXml/DalXml.cs"
click node_xml_export "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalXml/DatabaseToXml.cs"
click node_order_model "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BO/Order.cs"
click node_product_order_model "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BO/ProductInOrder.cs"
click node_sale_order_model "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BO/SaleInProduct.cs"
click node_conversions "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BO/Tools.cs"
click node_logging "https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/Tools/LogManager.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_home,node_manager,node_customer_ui,node_product_ui,node_sale_ui,node_checkout_ui,node_order_ui,node_salesperson_ui toneBlue
class node_bl_api,node_customer_ops,node_product_ops,node_sale_ops,node_order_ops,node_bl_factory,node_log_files toneAmber
class node_dal_api,node_dal_factory,node_memory_store,node_xml_store,node_xml_export toneMint
class node_order_model,node_product_order_model,node_sale_order_model,node_conversions,node_logging toneRose
class node_employee toneIndigo
```

## Components

### Employee interface

- [Application startup](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Program.cs): `DotNet2025_5431_1278_6870/UI/Program.cs`
- [Home screen](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Home.cs): `DotNet2025_5431_1278_6870/UI/Home.cs`
- [Manager menu](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/ManagerMenu.cs): `DotNet2025_5431_1278_6870/UI/ManagerMenu.cs`
- [Customer management](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Customers.cs): `DotNet2025_5431_1278_6870/UI/Customers.cs`
- [Product management](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Product.cs): `DotNet2025_5431_1278_6870/UI/Product.cs`
- [Promotion management](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Sale.cs): `DotNet2025_5431_1278_6870/UI/Sale.cs`
- [Checkout](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/CashRegister.cs): `DotNet2025_5431_1278_6870/UI/CashRegister.cs`
- [Order entry](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/OrderProduct.cs): `DotNet2025_5431_1278_6870/UI/OrderProduct.cs`
- [Salesperson screen](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/UI/Saleman.cs): `DotNet2025_5431_1278_6870/UI/Saleman.cs`

### Business operations

- [Business API](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlApi/IBl.cs): `DotNet2025_5431_1278_6870/BL/BlApi/IBl.cs`
- [Customer operations](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlImplementation/CustomerImplementation.cs): `DotNet2025_5431_1278_6870/BL/BlImplementation/CustomerImplementation.cs`
- [Product operations](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlImplementation/ProductImplementation.cs): `DotNet2025_5431_1278_6870/BL/BlImplementation/ProductImplementation.cs`
- [Promotion operations](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlImplementation/SaleImplementation.cs): `DotNet2025_5431_1278_6870/BL/BlImplementation/SaleImplementation.cs`
- [Order pricing and stock](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlImplementation/OrderImplementation.cs): `DotNet2025_5431_1278_6870/BL/BlImplementation/OrderImplementation.cs`
- [Business factory](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BlApi/Factory.cs): `DotNet2025_5431_1278_6870/BL/BlApi/Factory.cs`

### Data access

- [Data access API](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalFacade/DalApi/IDal.cs): `DotNet2025_5431_1278_6870/DalFacade/DalApi/IDal.cs`
- [Storage selector](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalFacade/DalApi/Factory.cs): `DotNet2025_5431_1278_6870/DalFacade/DalApi/Factory.cs`
- [In-memory storage](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalList/DalList.cs): `DotNet2025_5431_1278_6870/DalList/DalList.cs`
- [XML persistence](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalXml/DalXml.cs): `DotNet2025_5431_1278_6870/DalXml/DalXml.cs`
- [XML export](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/DalXml/DatabaseToXml.cs): `DotNet2025_5431_1278_6870/DalXml/DatabaseToXml.cs`

### Models and logging

- [Order model](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BO/Order.cs): `DotNet2025_5431_1278_6870/BL/BO/Order.cs`
- [Order line model](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BO/ProductInOrder.cs): `DotNet2025_5431_1278_6870/BL/BO/ProductInOrder.cs`
- [Applied sale model](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BO/SaleInProduct.cs): `DotNet2025_5431_1278_6870/BL/BO/SaleInProduct.cs`
- [Domain conversions](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/BL/BO/Tools.cs): `DotNet2025_5431_1278_6870/BL/BO/Tools.cs`
- [Log manager](https://github.com/tzipi10/store-management-system/blob/main/DotNet2025_5431_1278_6870/Tools/LogManager.cs): `DotNet2025_5431_1278_6870/Tools/LogManager.cs`

### Other components

- **Store employee**
- **Log files**

## Connections

- Store employee → Application startup: starts
- Application startup → Home screen: runs (evidence: `DotNet2025_5431_1278_6870/UI/Program.cs`)
- Home screen → Manager menu: opens (evidence: `DotNet2025_5431_1278_6870/UI/Home.cs`)
- Home screen → Salesperson screen: opens (evidence: `DotNet2025_5431_1278_6870/UI/Home.cs`)
- Manager menu → Customer management: opens (evidence: `DotNet2025_5431_1278_6870/UI/ManagerMenu.cs`)
- Manager menu → Product management: opens (evidence: `DotNet2025_5431_1278_6870/UI/ManagerMenu.cs`)
- Manager menu → Promotion management: opens (evidence: `DotNet2025_5431_1278_6870/UI/ManagerMenu.cs`)
- Salesperson screen → Checkout: starts checkout
- Checkout → Order entry: uses
- Customer management → Business API: calls (evidence: `DotNet2025_5431_1278_6870/UI/Customers.cs`)
- Product management → Business API: calls
- Promotion management → Business API: calls
- Checkout → Business API: calls
- Business factory → Business API: provides
- Business API → Customer operations: dispatches
- Business API → Product operations: dispatches
- Business API → Promotion operations: dispatches
- Business API → Order pricing and stock: dispatches
- Order pricing and stock → Data access API: reads and updates (evidence: `DotNet2025_5431_1278_6870/BL/BlImplementation/OrderImplementation.cs`)
- Order pricing and stock → Order line model: updates (evidence: `DotNet2025_5431_1278_6870/BL/BlImplementation/OrderImplementation.cs`)
- Order pricing and stock → Applied sale model: builds (evidence: `DotNet2025_5431_1278_6870/BL/BlImplementation/OrderImplementation.cs`)
- Order pricing and stock → Order model: prices (evidence: `DotNet2025_5431_1278_6870/BL/BlImplementation/OrderImplementation.cs`)
- Domain conversions → Data access API: converts records
- Storage selector → Data access API: selects implementation (evidence: `DotNet2025_5431_1278_6870/DalFacade/DalApi/Factory.cs`)
- Data access API → In-memory storage: implemented by (evidence: `DotNet2025_5431_1278_6870/DalList/DalList.cs`)
- Data access API → XML persistence: implemented by (evidence: `DotNet2025_5431_1278_6870/DalXml/DalXml.cs`)
- XML export → Storage selector: reads records (evidence: `DotNet2025_5431_1278_6870/DalXml/DatabaseToXml.cs`)
- XML export → XML persistence: exports XML
- In-memory storage → Log manager: logs operations
- XML persistence → Log manager: logs operations
- Log manager → Log files: writes (evidence: `DotNet2025_5431_1278_6870/Tools/LogManager.cs`)
