# mamoud427/calculateurage architecture

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

- Interactive diagram: https://gitdiagram.com/mamoud427/calculateurage
- Repository: https://github.com/mamoud427/calculateurage

## Overview

CalculateurAge is a .NET MAUI age-calculator app. Its apparent user flow is to enter a name and age, calculate an age result, and return to the input page. The excerpts confirm the main page creates the calculator view model and the result page displays query-provided values; the view-model implementation and XAML are not shown, so the calculation and forward-navigation link are marked unverified. Platform startup is represented only where its connection to MAUI configuration is evidenced.

Main entry points: [`CalculateurAge/ViewModels/CalculateurViewModel.cs`](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/ViewModels/CalculateurViewModel.cs) (Calculator view model), [`CalculateurAge/AppShell.xaml.cs`](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/AppShell.xaml.cs) (Shell navigation), [`CalculateurAge/MainPage.xaml.cs`](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/MainPage.xaml.cs) (Input page), [`CalculateurAge/MauiProgram.cs`](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/MauiProgram.cs) (MAUI configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Application startup"]
  node_tizen["Tizen entry<br/>[Main.cs]"]
  node_maui["MAUI configuration<br/>[MauiProgram.cs]"]
  node_app["Application window<br/>[App.xaml.cs]"]
  node_shell["Shell navigation<br/>[AppShell.xaml.cs]"]
end

subgraph group_workflow["Age calculation"]
  node_main["Input page<br/>[MainPage.xaml.cs]"]
  node_calculator["Calculator view model"]
  node_result["Result page"]
end

subgraph group_support["View-model support"]
  node_basevm["Property notifications<br/>[BaseViewModel.cs]"]
  node_command["Relay command<br/>[RelayCommand.cs]"]
end

node_user(("App user"))

node_tizen -->|"creates app"| node_maui
node_maui -->|"configures app"| node_app
node_app -->|"opens window"| node_shell
node_user -.->|"enters details"| node_main
node_main -->|"sets context"| node_calculator
node_calculator -.->|"uses notifications"| node_basevm
node_calculator -.->|"uses commands"| node_command
node_calculator -.->|"navigates with result"| node_result
node_result -->|"returns via"| node_shell
node_shell -.->|"routes to"| node_main

click node_tizen "https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/Platforms/Tizen/Main.cs"
click node_maui "https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/MauiProgram.cs"
click node_app "https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/App.xaml.cs"
click node_shell "https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/AppShell.xaml.cs"
click node_main "https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/MainPage.xaml.cs"
click node_calculator "https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/ViewModels/CalculateurViewModel.cs"
click node_result "https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/Views/ResultatPage.xaml.cs"
click node_basevm "https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/ViewModels/BaseViewModel.cs"
click node_command "https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/ViewModels/RelayCommand.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_tizen,node_maui,node_app,node_shell,node_user toneBlue
class node_main,node_calculator,node_result toneAmber
class node_basevm,node_command toneMint
```

## Components

### Application startup

- [Tizen entry](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/Platforms/Tizen/Main.cs): `CalculateurAge/Platforms/Tizen/Main.cs`
- [MAUI configuration](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/MauiProgram.cs): `CalculateurAge/MauiProgram.cs`
- [Application window](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/App.xaml.cs): `CalculateurAge/App.xaml.cs`
- [Shell navigation](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/AppShell.xaml.cs): `CalculateurAge/AppShell.xaml.cs`

### Age calculation

- [Input page](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/MainPage.xaml.cs): `CalculateurAge/MainPage.xaml.cs`
- [Calculator view model](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/ViewModels/CalculateurViewModel.cs): `CalculateurAge/ViewModels/CalculateurViewModel.cs`
- [Result page](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/Views/ResultatPage.xaml.cs): `CalculateurAge/Views/ResultatPage.xaml.cs`

### View-model support

- [Property notifications](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/ViewModels/BaseViewModel.cs): `CalculateurAge/ViewModels/BaseViewModel.cs`
- [Relay command](https://github.com/mamoud427/calculateurage/blob/master/CalculateurAge/ViewModels/RelayCommand.cs): `CalculateurAge/ViewModels/RelayCommand.cs`

### Other components

- **App user**

## Connections

- Tizen entry → MAUI configuration: creates app (evidence: `CalculateurAge/Platforms/Tizen/Main.cs`)
- MAUI configuration → Application window: configures app (evidence: `CalculateurAge/MauiProgram.cs`)
- Application window → Shell navigation: opens window (evidence: `CalculateurAge/App.xaml.cs`)
- App user → Input page: enters details
- Input page → Calculator view model: sets context (evidence: `CalculateurAge/MainPage.xaml.cs`)
- Calculator view model → Property notifications: uses notifications
- Calculator view model → Relay command: uses commands
- Calculator view model → Result page: navigates with result
- Result page → Shell navigation: returns via (evidence: `CalculateurAge/Views/ResultatPage.xaml.cs`)
- Shell navigation → Input page: routes to
