# mhdnour/simpletodo architecture

> Architecture diagram of the GitHub repository mhdnour/simpletodo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mhdnour/simpletodo
- Repository: https://github.com/mhdnour/simpletodo

## Overview

##### Main Components

A. User Interface Layer
- Main Window (SimpleModWindow)
- Task Control Component (TaskControl)

B. Service Layer
- XML Management Service
- File Management Service

C. Data Layer
- Task Data Storage
- Settings Storage
- Resource Management

**[User Interface Layer]**
- ↕
**[Service Layer]**
- ↕
**[Data Layer]**

##### Top Layer (UI)
- [SimpleModWindow.xaml] ←→ [TaskControl.xaml]
- ↓                        ↓
- [ColorTasks Management]    [UI Resources]

##### Middle Layer (Services)
- [XMLMan Service] ←→ [SaveFileType Service]

##### Bottom Layer (Data)
- [XML Storage] ←→ [User Settings] ←→ [Resources]

##### Important Elements to Highlight

- XML data persistence flow
- Settings management flow
- Resource management

- Light Blue: UI Components
- Light Green: Service Layer
- Light Yellow: Data Storage
- Gray: External Dependencies

- Component types
- Technology stack indicators

## Diagram (Mermaid)

```mermaid
graph TB
    %% Style Definitions
    classDef ui fill:#e6f3ff,stroke:#666
    classDef service fill:#e6ffe6,stroke:#666
    classDef data fill:#fff7e6,stroke:#666
    classDef external fill:#f0f0f0,stroke:#666

    %% UI Layer
    subgraph UI_Layer["User Interface Layer"]
        MainWindow["SimpleModWindow"]:::ui
        TaskControl["TaskControl"]:::ui
        ColorTasks["ColorTasks Management"]:::ui
        UIResources["UI Resources"]:::ui
        AppEntry["Application Entry"]:::ui
    end

    %% Service Layer
    subgraph Service_Layer["Service Layer"]
        XMLMan["XML Management Service"]:::service
        FileMan["File Management Service"]:::service
    end

    %% Data Layer
    subgraph Data_Layer["Data Layer"]
        XMLStorage["XML Storage"]:::data
        UserSettings["Settings Storage"]:::data
        ResManagement["Resource Management"]:::data
    end

    %% Relationships
    MainWindow <--> TaskControl
    MainWindow --> ColorTasks
    TaskControl --> UIResources
    AppEntry --> MainWindow

    MainWindow --> XMLMan
    TaskControl --> XMLMan
    XMLMan <--> FileMan

    XMLMan --> XMLStorage
    FileMan --> XMLStorage
    MainWindow --> UserSettings
    TaskControl --> ResManagement

    %% Click Events
    click MainWindow "https://github.com/mhdnour/SimpleTODO/blob/master/SimpleModWindow.xaml"
    click TaskControl "https://github.com/mhdnour/SimpleTODO/blob/master/SimpleTask.Data/TaskControl.xaml"
    click ColorTasks "https://github.com/mhdnour/SimpleTODO/blob/master/SimpleTask.Data/ColorTasks.cs"
    click XMLMan "https://github.com/mhdnour/SimpleTODO/blob/master/Services/XMLMan.cs"
    click FileMan "https://github.com/mhdnour/SimpleTODO/blob/master/Services/SaveFileType.cs"
    click UserSettings "https://github.com/mhdnour/SimpleTODO/blob/master/Properties/Settings.Designer.cs"
    click ResManagement "https://github.com/mhdnour/SimpleTODO/blob/master/Properties/Resources.Designer.cs"
    click AppEntry "https://github.com/mhdnour/SimpleTODO/blob/master/App.xaml"

    %% Legend
    subgraph Legend
        UI[UI Component]:::ui
        SVC[Service Component]:::service
        DATA[Data Component]:::data
        EXT[External Dependency]:::external
    end
```
