# jechm/proyectosumg architecture

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

- Interactive diagram: https://gitdiagram.com/jechm/proyectosumg
- Repository: https://github.com/jechm/proyectosumg

## Overview

This repository contains three independent Windows Forms exercises: a small product-inventory form, a book-catalog exercise, and a three-dice game. Their user-facing workflows begin in separate forms; the inventory form creates and recalls product records, while the dice form launches a game and displays its result. The book exercise includes a book model and manager, but the available excerpts do not establish how its form invokes that manager. The graph preserves that evidence limit rather than assuming a call.

Main entry points: [`Ejercicio 230826/Ejercicio 230826/Ejercicio 230826/Form1.cs`](https://github.com/jechm/proyectosumg/blob/main/Ejercicio%20230826/Ejercicio%20230826/Ejercicio%20230826/Form1.cs) (Inventory form), [`ejercicio300826-progra2/ejercicio300826-progra2/Form1.cs`](https://github.com/jechm/proyectosumg/blob/main/ejercicio300826-progra2/ejercicio300826-progra2/Form1.cs) (Game form), [`ejercicio300826-progra2/ejercicio300826-progra2/Models/clsJuego.cs`](https://github.com/jechm/proyectosumg/blob/main/ejercicio300826-progra2/ejercicio300826-progra2/Models/clsJuego.cs) (Dice game), [`Ejercicio060926_Progra2/Ejercicio060926_Progra2/Form1.cs`](https://github.com/jechm/proyectosumg/blob/main/Ejercicio060926_Progra2/Ejercicio060926_Progra2/Form1.cs) (Library form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inventory["Product inventory"]
  node_inventory_entry["Inventory startup<br/>[Program.cs]"]
  node_inventory_form["Inventory form<br/>[Form1.cs]"]
  node_product["Product record<br/>[clsProducto.cs]"]
end

subgraph group_library["Book catalog"]
  node_library_entry["Library startup<br/>[Program.cs]"]
  node_library_form["Library form<br/>[Form1.cs]"]
  node_book_manager["Book manager"]
  node_book["Book record<br/>[clsLibro.cs]"]
end

subgraph group_dice["Dice game"]
  node_dice_entry["Game startup<br/>[Program.cs]"]
  node_dice_form["Game form<br/>[Form1.cs]"]
  node_game["Dice game<br/>[clsJuego.cs]"]
  node_die["Die generator<br/>[clsDado.cs]"]
end

node_user(("User"))

node_inventory_entry -->|"opens"| node_inventory_form
node_user -->|"uses"| node_inventory_form
node_inventory_form -->|"creates and reads"| node_product
node_library_entry -->|"opens"| node_library_form
node_user -.->|"uses"| node_library_form
node_book_manager -->|"manages"| node_book
node_dice_entry -->|"opens"| node_dice_form
node_user -->|"starts game"| node_dice_form
node_dice_form -->|"launches"| node_game
node_game -->|"generates rolls"| node_die

click node_inventory_entry "https://github.com/jechm/proyectosumg/blob/main/Ejercicio%20230826/Ejercicio%20230826/Ejercicio%20230826/Program.cs"
click node_inventory_form "https://github.com/jechm/proyectosumg/blob/main/Ejercicio%20230826/Ejercicio%20230826/Ejercicio%20230826/Form1.cs"
click node_product "https://github.com/jechm/proyectosumg/blob/main/Ejercicio%20230826/Ejercicio%20230826/Ejercicio%20230826/Models/clsProducto.cs"
click node_library_entry "https://github.com/jechm/proyectosumg/blob/main/Ejercicio060926_Progra2/Ejercicio060926_Progra2/Program.cs"
click node_library_form "https://github.com/jechm/proyectosumg/blob/main/Ejercicio060926_Progra2/Ejercicio060926_Progra2/Form1.cs"
click node_book_manager "https://github.com/jechm/proyectosumg/blob/main/Ejercicio060926_Progra2/Ejercicio060926_Progra2/Services/clsManejadorLibros.cs"
click node_book "https://github.com/jechm/proyectosumg/blob/main/Ejercicio060926_Progra2/Ejercicio060926_Progra2/Models/clsLibro.cs"
click node_dice_entry "https://github.com/jechm/proyectosumg/blob/main/ejercicio300826-progra2/ejercicio300826-progra2/Program.cs"
click node_dice_form "https://github.com/jechm/proyectosumg/blob/main/ejercicio300826-progra2/ejercicio300826-progra2/Form1.cs"
click node_game "https://github.com/jechm/proyectosumg/blob/main/ejercicio300826-progra2/ejercicio300826-progra2/Models/clsJuego.cs"
click node_die "https://github.com/jechm/proyectosumg/blob/main/ejercicio300826-progra2/ejercicio300826-progra2/Models/clsDado.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_inventory_entry,node_inventory_form,node_product,node_user toneBlue
class node_library_entry,node_library_form,node_book_manager,node_book toneAmber
class node_dice_entry,node_dice_form,node_game,node_die toneMint
```

## Components

### Product inventory

- [Inventory startup](https://github.com/jechm/proyectosumg/blob/main/Ejercicio%20230826/Ejercicio%20230826/Ejercicio%20230826/Program.cs): `Ejercicio 230826/Ejercicio 230826/Ejercicio 230826/Program.cs`
- [Inventory form](https://github.com/jechm/proyectosumg/blob/main/Ejercicio%20230826/Ejercicio%20230826/Ejercicio%20230826/Form1.cs): `Ejercicio 230826/Ejercicio 230826/Ejercicio 230826/Form1.cs`
- [Product record](https://github.com/jechm/proyectosumg/blob/main/Ejercicio%20230826/Ejercicio%20230826/Ejercicio%20230826/Models/clsProducto.cs): `Ejercicio 230826/Ejercicio 230826/Ejercicio 230826/Models/clsProducto.cs`

### Book catalog

- [Library startup](https://github.com/jechm/proyectosumg/blob/main/Ejercicio060926_Progra2/Ejercicio060926_Progra2/Program.cs): `Ejercicio060926_Progra2/Ejercicio060926_Progra2/Program.cs`
- [Library form](https://github.com/jechm/proyectosumg/blob/main/Ejercicio060926_Progra2/Ejercicio060926_Progra2/Form1.cs): `Ejercicio060926_Progra2/Ejercicio060926_Progra2/Form1.cs`
- [Book manager](https://github.com/jechm/proyectosumg/blob/main/Ejercicio060926_Progra2/Ejercicio060926_Progra2/Services/clsManejadorLibros.cs): `Ejercicio060926_Progra2/Ejercicio060926_Progra2/Services/clsManejadorLibros.cs`
- [Book record](https://github.com/jechm/proyectosumg/blob/main/Ejercicio060926_Progra2/Ejercicio060926_Progra2/Models/clsLibro.cs): `Ejercicio060926_Progra2/Ejercicio060926_Progra2/Models/clsLibro.cs`

### Dice game

- [Game startup](https://github.com/jechm/proyectosumg/blob/main/ejercicio300826-progra2/ejercicio300826-progra2/Program.cs): `ejercicio300826-progra2/ejercicio300826-progra2/Program.cs`
- [Game form](https://github.com/jechm/proyectosumg/blob/main/ejercicio300826-progra2/ejercicio300826-progra2/Form1.cs): `ejercicio300826-progra2/ejercicio300826-progra2/Form1.cs`
- [Dice game](https://github.com/jechm/proyectosumg/blob/main/ejercicio300826-progra2/ejercicio300826-progra2/Models/clsJuego.cs): `ejercicio300826-progra2/ejercicio300826-progra2/Models/clsJuego.cs`
- [Die generator](https://github.com/jechm/proyectosumg/blob/main/ejercicio300826-progra2/ejercicio300826-progra2/Models/clsDado.cs): `ejercicio300826-progra2/ejercicio300826-progra2/Models/clsDado.cs`

### Other components

- **User**

## Connections

- Inventory startup → Inventory form: opens (evidence: `Ejercicio 230826/Ejercicio 230826/Ejercicio 230826/Program.cs`)
- User → Inventory form: uses (evidence: `Ejercicio 230826/Ejercicio 230826/Ejercicio 230826/Form1.cs`)
- Inventory form → Product record: creates and reads (evidence: `Ejercicio 230826/Ejercicio 230826/Ejercicio 230826/Form1.cs`)
- Library startup → Library form: opens (evidence: `Ejercicio060926_Progra2/Ejercicio060926_Progra2/Program.cs`)
- User → Library form: uses
- Book manager → Book record: manages (evidence: `Ejercicio060926_Progra2/Ejercicio060926_Progra2/Services/clsManejadorLibros.cs`)
- Game startup → Game form: opens (evidence: `ejercicio300826-progra2/ejercicio300826-progra2/Program.cs`)
- User → Game form: starts game (evidence: `ejercicio300826-progra2/ejercicio300826-progra2/Form1.cs`)
- Game form → Dice game: launches (evidence: `ejercicio300826-progra2/ejercicio300826-progra2/Form1.cs`)
- Dice game → Die generator: generates rolls (evidence: `ejercicio300826-progra2/ejercicio300826-progra2/Models/clsJuego.cs`)
