# aljafarijehad/pizaaproject architecture

> Architecture diagram of the GitHub repository aljafarijehad/pizaaproject, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aljafarijehad/pizaaproject
- Repository: https://github.com/aljafarijehad/pizaaproject

## Overview

This is a small Windows Forms pizza-ordering application. The user selects pizza size, crust, toppings, and dining option; the form updates the order summary and price, and the order action presents a summary dialog. Pricing and summary behavior are implemented within the main form rather than separate services. The designer file is present in the tree, but its contents were not sampled, so detailed UI wiring beyond the shown event handlers is not asserted.

Main entry points: [`Form1.cs`](https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.cs) (Order form), [`Program.cs`](https://github.com/aljafarijehad/pizaaproject/blob/master/Program.cs) (Application entry), [`Form1.Designer.cs`](https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.Designer.cs) (Form controls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Order interface"]
  node_entry["Application entry<br/>[Program.cs]"]
  node_form["Order form<br/>[Form1.cs]"]
  node_controls["Form controls<br/>[Form1.Designer.cs]"]
end

subgraph group_logic["Order logic"]
  node_selection["Order selection<br/>[Form1.cs]"]
  node_summary["Summary display<br/>[Form1.cs]"]
  node_pricing["Price calculation<br/>[Form1.cs]"]
  node_dialog["Order dialog<br/>[Form1.cs]"]
end

node_customer(("Customer"))

node_customer -.->|"configures order"| node_form
node_entry -->|"runs"| node_form
node_controls -.->|"initializes"| node_form
node_selection -->|"updates"| node_summary
node_selection -->|"reads selections"| node_pricing
node_pricing -->|"supplies prices"| node_summary
node_form -->|"shows summary"| node_dialog

click node_entry "https://github.com/aljafarijehad/pizaaproject/blob/master/Program.cs"
click node_form "https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.cs"
click node_controls "https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.Designer.cs"
click node_selection "https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.cs"
click node_summary "https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.cs"
click node_pricing "https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.cs"
click node_dialog "https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.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_entry,node_form,node_controls toneBlue
class node_selection,node_summary,node_pricing,node_dialog toneAmber
class node_customer toneIndigo
```

## Components

### Order interface

- [Application entry](https://github.com/aljafarijehad/pizaaproject/blob/master/Program.cs): `Program.cs`
- [Order form](https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.cs): `Form1.cs`
- [Form controls](https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.Designer.cs): `Form1.Designer.cs`

### Order logic

- [Order selection](https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.cs): `Form1.cs`
- [Summary display](https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.cs): `Form1.cs`
- [Price calculation](https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.cs): `Form1.cs`
- [Order dialog](https://github.com/aljafarijehad/pizaaproject/blob/master/Form1.cs): `Form1.cs`

### Other components

- **Customer**

## Connections

- Customer → Order form: configures order
- Application entry → Order form: runs (evidence: `Program.cs`)
- Form controls → Order form: initializes
- Order selection → Summary display: updates (evidence: `Form1.cs`)
- Order selection → Price calculation: reads selections (evidence: `Form1.cs`)
- Price calculation → Summary display: supplies prices (evidence: `Form1.cs`)
- Order form → Order dialog: shows summary (evidence: `Form1.cs`)
