# cizib/muzikawpfport architecture

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

- Interactive diagram: https://gitdiagram.com/cizib/muzikawpfport
- Repository: https://github.com/cizib/muzikawpfport

## Overview

The repository contains a WPF music player and a separate, minimally implemented Windows Forms shell. The WPF workflow manages a saved song list, creates track metadata, and controls playback; it also offers shuffle, repeat, speed, volume, and web search. Most behavior is concentrated in MainWindow.xaml.cs, so the graph separates its meaningful responsibilities without implying separate implementation modules. The Windows Forms entry point launches an otherwise empty form. Evidence is limited to the supplied excerpts; the WPF player’s startup wiring and UI markup were not shown.

Main entry points: [`MuzikaWPFPort/MainWindow.xaml.cs`](https://github.com/cizib/muzikawpfport/blob/master/MuzikaWPFPort/MainWindow.xaml.cs) (Player window and controls), [`WindowsFormsApp2/Program.cs`](https://github.com/cizib/muzikawpfport/blob/master/WindowsFormsApp2/Program.cs) (Forms entry point), [`MuzikaWPFPort/Pesma.cs`](https://github.com/cizib/muzikawpfport/blob/master/MuzikaWPFPort/Pesma.cs) (Track metadata), [`WindowsFormsApp2/Form1.cs`](https://github.com/cizib/muzikawpfport/blob/master/WindowsFormsApp2/Form1.cs) (Empty form shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_wpf["WPF music player"]
  node_player["Player window and controls<br/>[MainWindow.xaml.cs]"]
  node_playlist["Saved song paths<br/>[MainWindow.xaml.cs]"]
  node_track["Track metadata<br/>[Pesma.cs]"]
  node_media["Windows Media Player<br/>[MainWindow.xaml.cs]"]
  node_search["Web search"]
end

subgraph group_forms["Windows Forms shell"]
  node_entry["Forms entry point<br/>[Program.cs]"]
  node_form["Empty form shell<br/>[Form1.cs]"]
end

node_listener(("Listener"))
node_formsuser(("Windows Forms user"))

node_listener -->|"uses"| node_player
node_player -->|"reads and writes"| node_playlist
node_player -->|"creates"| node_track
node_player -->|"controls playback"| node_media
node_player -->|"opens search"| node_search
node_formsuser -->|"starts"| node_entry
node_entry -->|"runs"| node_form

click node_player "https://github.com/cizib/muzikawpfport/blob/master/MuzikaWPFPort/MainWindow.xaml.cs"
click node_playlist "https://github.com/cizib/muzikawpfport/blob/master/MuzikaWPFPort/MainWindow.xaml.cs"
click node_track "https://github.com/cizib/muzikawpfport/blob/master/MuzikaWPFPort/Pesma.cs"
click node_media "https://github.com/cizib/muzikawpfport/blob/master/MuzikaWPFPort/MainWindow.xaml.cs"
click node_entry "https://github.com/cizib/muzikawpfport/blob/master/WindowsFormsApp2/Program.cs"
click node_form "https://github.com/cizib/muzikawpfport/blob/master/WindowsFormsApp2/Form1.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_player,node_playlist,node_track,node_media,node_search,node_formsuser toneBlue
class node_entry,node_form toneAmber
class node_listener toneIndigo
```

## Components

### WPF music player

- [Player window and controls](https://github.com/cizib/muzikawpfport/blob/master/MuzikaWPFPort/MainWindow.xaml.cs): `MuzikaWPFPort/MainWindow.xaml.cs`
- [Saved song paths](https://github.com/cizib/muzikawpfport/blob/master/MuzikaWPFPort/MainWindow.xaml.cs): `MuzikaWPFPort/MainWindow.xaml.cs`
- [Track metadata](https://github.com/cizib/muzikawpfport/blob/master/MuzikaWPFPort/Pesma.cs): `MuzikaWPFPort/Pesma.cs`
- [Windows Media Player](https://github.com/cizib/muzikawpfport/blob/master/MuzikaWPFPort/MainWindow.xaml.cs): `MuzikaWPFPort/MainWindow.xaml.cs`
- **Web search**

### Windows Forms shell

- [Forms entry point](https://github.com/cizib/muzikawpfport/blob/master/WindowsFormsApp2/Program.cs): `WindowsFormsApp2/Program.cs`
- [Empty form shell](https://github.com/cizib/muzikawpfport/blob/master/WindowsFormsApp2/Form1.cs): `WindowsFormsApp2/Form1.cs`

### Other components

- **Listener**
- **Windows Forms user**

## Connections

- Listener → Player window and controls: uses
- Player window and controls → Saved song paths: reads and writes (evidence: `MuzikaWPFPort/MainWindow.xaml.cs`)
- Player window and controls → Track metadata: creates (evidence: `MuzikaWPFPort/MainWindow.xaml.cs`)
- Player window and controls → Windows Media Player: controls playback (evidence: `MuzikaWPFPort/MainWindow.xaml.cs`)
- Player window and controls → Web search: opens search (evidence: `MuzikaWPFPort/MainWindow.xaml.cs`)
- Windows Forms user → Forms entry point: starts (evidence: `WindowsFormsApp2/Program.cs`)
- Forms entry point → Empty form shell: runs (evidence: `WindowsFormsApp2/Program.cs`)
