# a-silent-player/simple-pc-manager architecture

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

- Interactive diagram: https://gitdiagram.com/a-silent-player/simple-pc-manager
- Repository: https://github.com/a-silent-player/simple-pc-manager

## Overview

Simple PC Manager is a Windows WPF utility. Users navigate its dashboard, cleaner, process, storage, and startup pages to inspect system state or take actions; the window coordinates collection and updates the UI. The README also documents theme switching and crash-resilient error logging. The shown excerpts establish several coordinator and helper relationships, but not all page internals or XAML bindings, so unverified links are omitted.

Main entry points: [`MainWindow.xaml.cs`](https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs) (Main window), [`ThemeManager.cs`](https://github.com/a-silent-player/simple-pc-manager/blob/main/ThemeManager.cs) (Theme manager), [`App.xaml.cs`](https://github.com/a-silent-player/simple-pc-manager/blob/main/App.xaml.cs) (Application lifecycle), [`JunkCleaner.cs`](https://github.com/a-silent-player/simple-pc-manager/blob/main/JunkCleaner.cs) (Cleanup engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_window["Main window<br/>[MainWindow.xaml.cs]"]
  node_dashboard["System insights<br/>[MainWindow.xaml.cs]"]
  node_processes["Process management<br/>[MainWindow.xaml.cs]"]
  node_storage["Storage view<br/>[MainWindow.xaml.cs]"]
  node_startup["Startup management<br/>[MainWindow.xaml.cs]"]
  node_driveinfo["Drive metrics<br/>[MainWindow.xaml.cs]"]
end

subgraph group_maintenance["System maintenance"]
  node_cleaner["Cleaner workflow<br/>[MainWindow.xaml.cs]"]
  node_cleanengine["Cleanup engine<br/>[JunkCleaner.cs]"]
end

subgraph group_state["Preferences and recovery"]
  node_theme["Theme manager<br/>[ThemeManager.cs]"]
  node_settings[("Cleanup counter<br/>[AppSettings.cs]")]
  node_app["Application lifecycle<br/>[App.xaml.cs]"]
  node_errorlog["Error log<br/>[App.xaml.cs]"]
end

node_user(("User"))
node_windows["Windows system"]
node_filesystem[("Local files")]

node_user -->|"uses"| node_window
node_window -->|"refreshes"| node_dashboard
node_window -->|"refreshes"| node_processes
node_window -->|"loads"| node_storage
node_window -->|"loads"| node_startup
node_window -->|"routes"| node_cleaner
node_window -.->|"applies"| node_theme
node_cleaner -->|"scans and cleans"| node_cleanengine
node_cleaner -->|"updates counter"| node_settings
node_cleanengine -->|"deletes files"| node_filesystem
node_dashboard -->|"samples metrics"| node_windows
node_processes -->|"reads and terminates"| node_windows
node_driveinfo -->|"reads drives"| node_windows
node_startup -->|"reads registry"| node_windows
node_app -->|"initializes"| node_theme
node_theme -->|"reads theme preference"| node_windows
node_theme -->|"saves preference"| node_windows
node_app -->|"writes errors"| node_errorlog

click node_window "https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs"
click node_dashboard "https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs"
click node_processes "https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs"
click node_storage "https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs"
click node_startup "https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs"
click node_cleaner "https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs"
click node_cleanengine "https://github.com/a-silent-player/simple-pc-manager/blob/main/JunkCleaner.cs"
click node_driveinfo "https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs"
click node_theme "https://github.com/a-silent-player/simple-pc-manager/blob/main/ThemeManager.cs"
click node_settings "https://github.com/a-silent-player/simple-pc-manager/blob/main/AppSettings.cs"
click node_app "https://github.com/a-silent-player/simple-pc-manager/blob/main/App.xaml.cs"
click node_errorlog "https://github.com/a-silent-player/simple-pc-manager/blob/main/App.xaml.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_window,node_dashboard,node_processes,node_storage,node_startup,node_driveinfo,node_user toneBlue
class node_cleaner,node_cleanengine,node_filesystem toneAmber
class node_theme,node_settings,node_app,node_errorlog toneMint
class node_windows toneIndigo
```

## Components

### User interface

- [Main window](https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`
- [System insights](https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`
- [Process management](https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`
- [Storage view](https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`
- [Startup management](https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`
- [Drive metrics](https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`

### System maintenance

- [Cleaner workflow](https://github.com/a-silent-player/simple-pc-manager/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`
- [Cleanup engine](https://github.com/a-silent-player/simple-pc-manager/blob/main/JunkCleaner.cs): `JunkCleaner.cs`

### Preferences and recovery

- [Theme manager](https://github.com/a-silent-player/simple-pc-manager/blob/main/ThemeManager.cs): `ThemeManager.cs`
- [Cleanup counter](https://github.com/a-silent-player/simple-pc-manager/blob/main/AppSettings.cs): `AppSettings.cs`
- [Application lifecycle](https://github.com/a-silent-player/simple-pc-manager/blob/main/App.xaml.cs): `App.xaml.cs`
- [Error log](https://github.com/a-silent-player/simple-pc-manager/blob/main/App.xaml.cs): `App.xaml.cs`

### Other components

- **User**
- **Windows system**
- **Local files**

## Connections

- User → Main window: uses (evidence: `README.md`)
- Main window → System insights: refreshes (evidence: `MainWindow.xaml.cs`)
- Main window → Process management: refreshes (evidence: `MainWindow.xaml.cs`)
- Main window → Storage view: loads (evidence: `MainWindow.xaml.cs`)
- Main window → Startup management: loads (evidence: `MainWindow.xaml.cs`)
- Main window → Cleaner workflow: routes (evidence: `MainWindow.xaml.cs`)
- Main window → Theme manager: applies (evidence: `MainWindow.xaml.cs`)
- Cleaner workflow → Cleanup engine: scans and cleans (evidence: `MainWindow.xaml.cs`)
- Cleaner workflow → Cleanup counter: updates counter (evidence: `MainWindow.xaml.cs`)
- Cleanup engine → Local files: deletes files (evidence: `JunkCleaner.cs`)
- System insights → Windows system: samples metrics (evidence: `MainWindow.xaml.cs`)
- Process management → Windows system: reads and terminates (evidence: `MainWindow.xaml.cs`)
- Drive metrics → Windows system: reads drives (evidence: `MainWindow.xaml.cs`)
- Startup management → Windows system: reads registry (evidence: `MainWindow.xaml.cs`)
- Application lifecycle → Theme manager: initializes (evidence: `App.xaml.cs`)
- Theme manager → Windows system: reads theme preference (evidence: `ThemeManager.cs`)
- Theme manager → Windows system: saves preference (evidence: `ThemeManager.cs`)
- Application lifecycle → Error log: writes errors (evidence: `App.xaml.cs`)
