How hc0517z/myapps works
Main Components
A. Presentation Layer (UI)
• Views (WPF Windows and Dialogs)
• ViewModels (MVVM Pattern)
• Assets (Fonts and Resources)
B. Business Layer
• Services (Application Logic)
• Models (Domain Objects)
• Messages (Inter-component Communication)
C. Data Layer
• Repositories
• Infrastructure
• Storage
Architecture Pattern Representation
a) Three distinct layers with clear boundaries:
• UI Layer (Views + ViewModels)
• Business Layer (Services + Models)
• Data Layer (Repositories + Infrastructure)
b) Dependencies should flow inward:
• UI depends on Business
• Business depends on Data
• Each layer should be visually separated
Component Relationships
a) UI Layer Components:
• MainWindow → MainWindowViewModel
• Dialog Views → Dialog ViewModels
• ViewModelLocator (Dependency Injection)
b) Business Layer Components:
• AppService ↔ GroupService
• DirectoryGroupService → ExplorerService
• Message Bus (for inter-component communication)
c) Data Layer Components:
• AppRepository ↔ GroupRepository
• JsonRepository implementation
• MemoryRepository implementation
Specific Implementation Details
Technical elements:
a) External Dependencies:
• WPF-UI
• CommunityToolkit.Mvvm
• gong-wpf-dragdrop
b) Key Features:
• Drag and Drop Support (AppsDropHandler)
• Directory Group Export/Import
• Program Execution Management