How changbowen/desktopnote works
DesktopNote is a Windows desktop sticky-note application. Users create or reopen note windows, edit rich-text content, and have note content and per-note settings saved to files; they can also search, format, reset, and reposition notes. The graph includes the documented image, docking, and multiple-window capabilities, though their full implementations were not sampled. Edges are limited to relationships visible in excerpts or explicitly documented by the README.
Main entry points: MainWindow.xaml.cs Note window and editor · RoundedWindow.cs Shared window behavior · App.xaml.cs Application startup · Win_Format.xaml.cs Formatting controls
Components 13
Application lifecycle
- Application startup
App.xaml.cs - Single-instance coordination
SingleInstance.cs
Notes and persistence
- Note window and editor
MainWindow.xaml.cs - Note file operations
Helpers.cs - Note settings
Setting.cs - Note content files
Note interaction
- Formatting controls
Win_Format.xaml.cs - Note search
Win_Search.xaml.cs - Options and reset
Win_Options.xaml.cs
Window behavior
- Shared window behavior
RoundedWindow.cs - Monitor bounds
GetCurrentMonitor.cs - Windows positioning APIs
WinAPI.cs
Other components
- Desktop user
Connections 19
- Desktop user → Application startup: starts app
- Application startup → Single-instance coordination: checks instance
App.xaml.cs - Application startup → Note settings: updates note list
App.xaml.cs - Desktop user → Note window and editor: creates or edits
README.md - Note window and editor → Monitor bounds: gets monitor bounds
MainWindow.xaml.cs - Note window and editor → Note file operations: saves note
MainWindow.xaml.cs - Note file operations → Note content files: reads and writes
Helpers.cs - Note settings → Note content files: serializes settings
- Note window and editor → Formatting controls: opens formatting
- Formatting controls → Note window and editor: formats editor
Win_Format.xaml.cs - Desktop user → Note search: searches note
README.md - Note search → Note window and editor: selects text in
Win_Search.xaml.cs - Desktop user → Options and reset: changes options
README.md - Options and reset → Note window and editor: resets note
Win_Options.xaml.cs - Note window and editor → Shared window behavior: inherits window behavior
MainWindow.xaml.cs - Formatting controls → Shared window behavior: inherits window behavior
Win_Format.xaml.cs - Note search → Shared window behavior: inherits window behavior
Win_Search.xaml.cs - Options and reset → Shared window behavior: inherits window behavior
Win_Options.xaml.cs - Note window and editor → Windows positioning APIs: positions windows