# bakhtiyarovdj/historical_places_of_uzbekistan architecture

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

- Interactive diagram: https://gitdiagram.com/bakhtiyarovdj/historical_places_of_uzbekistan
- Repository: https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan

## Overview

HistoricalPlacesOfUzb is a Windows Forms guide to Uzbekistan’s historical sites. The main visitor flow starts at the map, opens a selected region, loads its places from the local database, and displays names, descriptions, and images with in-region navigation. An administrator can open login, then add, update, or delete place records and copy image files into the local Places directory. The sampled source shows these form transitions and data operations; the README documents the broader visitor capabilities, while unsampled designer and configuration details are not mapped.

Main entry points: [`NewPlaceForm.cs`](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/NewPlaceForm.cs) (Add place), [`EachRegionPlacesForm.cs`](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/EachRegionPlacesForm.cs) (Regional places), [`Tools/Query.cs`](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Tools/Query.cs) (SQL query service), [`UpdatePlaceForm.cs`](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/UpdatePlaceForm.cs) (Edit or delete place)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Visitor discovery"]
  node_application["Application entry<br/>[Program.cs]"]
  node_map["Region map<br/>[UzbMapForm.cs]"]
  node_regional_places["Regional places"]
end

subgraph group_administration["Place administration"]
  node_login["Admin login<br/>[LogInForm.cs]"]
  node_create_place["Add place<br/>[NewPlaceForm.cs]"]
  node_edit_place["Edit or delete place<br/>[UpdatePlaceForm.cs]"]
end

subgraph group_data["Data and image services"]
  node_image_record["Place image record<br/>[ImageInfo.cs]"]
  node_helpers["Image and display helpers<br/>[Tools.cs]"]
  node_query["SQL query service<br/>[Query.cs]"]
  node_places_db[("Places database<br/>[Places.mdf]")]
  node_image_files["Place image files"]
end

node_visitor(("Visitor"))
node_admin(("Administrator"))

node_visitor -.->|"starts"| node_application
node_application -->|"launches"| node_map
node_visitor -.->|"chooses region"| node_map
node_map -->|"opens region"| node_regional_places
node_regional_places -->|"loads places"| node_query
node_regional_places -->|"builds image records"| node_helpers
node_helpers -->|"creates records"| node_image_record
node_regional_places -->|"loads images"| node_image_files
node_visitor -.->|"navigates places"| node_regional_places
node_map -->|"opens admin login"| node_login
node_admin -.->|"enters credentials"| node_login
node_login -->|"checks credentials"| node_query
node_login -->|"opens after login"| node_create_place
node_create_place -->|"inserts place"| node_query
node_create_place -->|"copies image"| node_helpers
node_create_place -->|"stores image"| node_image_files
node_create_place -->|"opens editing"| node_edit_place
node_edit_place -->|"updates or deletes"| node_query
node_edit_place -->|"copies image"| node_helpers
node_edit_place -->|"stores image"| node_image_files
node_query -->|"reads and writes"| node_places_db

click node_application "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Program.cs"
click node_map "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/UzbMapForm.cs"
click node_regional_places "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/EachRegionPlacesForm.cs"
click node_image_record "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Tools/ImageInfo.cs"
click node_login "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/LogInForm.cs"
click node_create_place "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/NewPlaceForm.cs"
click node_edit_place "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/UpdatePlaceForm.cs"
click node_helpers "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Tools/Tools.cs"
click node_query "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Tools/Query.cs"
click node_places_db "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Places.mdf"
click node_image_files "https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/tree/develop/Places"

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_application,node_map,node_regional_places toneBlue
class node_login,node_create_place,node_edit_place toneAmber
class node_image_record,node_helpers,node_query,node_places_db,node_image_files toneMint
class node_visitor,node_admin toneIndigo
```

## Components

### Visitor discovery

- [Application entry](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Program.cs): `Program.cs`
- [Region map](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/UzbMapForm.cs): `UzbMapForm.cs`
- [Regional places](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/EachRegionPlacesForm.cs): `EachRegionPlacesForm.cs`

### Place administration

- [Admin login](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/LogInForm.cs): `LogInForm.cs`
- [Add place](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/NewPlaceForm.cs): `NewPlaceForm.cs`
- [Edit or delete place](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/UpdatePlaceForm.cs): `UpdatePlaceForm.cs`

### Data and image services

- [Place image record](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Tools/ImageInfo.cs): `Tools/ImageInfo.cs`
- [Image and display helpers](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Tools/Tools.cs): `Tools/Tools.cs`
- [SQL query service](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Tools/Query.cs): `Tools/Query.cs`
- [Places database](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/blob/develop/Places.mdf): `Places.mdf`
- [Place image files](https://github.com/bakhtiyarovdj/historical_places_of_uzbekistan/tree/develop/Places): `Places`

### Other components

- **Visitor**
- **Administrator**

## Connections

- Visitor → Application entry: starts (evidence: `README.md`)
- Application entry → Region map: launches (evidence: `Program.cs`)
- Visitor → Region map: chooses region (evidence: `README.md`)
- Region map → Regional places: opens region (evidence: `UzbMapForm.cs`)
- Regional places → SQL query service: loads places (evidence: `EachRegionPlacesForm.cs`)
- Regional places → Image and display helpers: builds image records (evidence: `EachRegionPlacesForm.cs`)
- Image and display helpers → Place image record: creates records (evidence: `Tools/Tools.cs`)
- Regional places → Place image files: loads images (evidence: `EachRegionPlacesForm.cs`)
- Visitor → Regional places: navigates places (evidence: `README.md`)
- Region map → Admin login: opens admin login (evidence: `UzbMapForm.cs`)
- Administrator → Admin login: enters credentials (evidence: `README.md`)
- Admin login → SQL query service: checks credentials (evidence: `LogInForm.cs`)
- Admin login → Add place: opens after login (evidence: `LogInForm.cs`)
- Add place → SQL query service: inserts place (evidence: `NewPlaceForm.cs`)
- Add place → Image and display helpers: copies image (evidence: `NewPlaceForm.cs`)
- Add place → Place image files: stores image (evidence: `NewPlaceForm.cs`)
- Add place → Edit or delete place: opens editing (evidence: `NewPlaceForm.cs`)
- Edit or delete place → SQL query service: updates or deletes (evidence: `UpdatePlaceForm.cs`)
- Edit or delete place → Image and display helpers: copies image (evidence: `UpdatePlaceForm.cs`)
- Edit or delete place → Place image files: stores image (evidence: `UpdatePlaceForm.cs`)
- SQL query service → Places database: reads and writes (evidence: `Tools/Query.cs`)
