How olasdemar12/almacen-wpf works
StockMaster is a WPF inventory application. Users enter through the desktop shell and navigate to product and category management; view models call services, which validate and persist records through repositories and SQLite. The README also names stock movements (entries/exits) and reports, but their implementation is not sampled, so they appear only as documented capability areas. The graph focuses on supported wiring and CRUD behavior; unsampled view and dialog relationships are not inferred.
Main entry points: ProductService.cs Product service · MainWindow.xaml.cs WPF shell · DatabaseManager.cs Connection manager · CategoryRepository.cs Category repository
Components 22
Desktop application
- WPF shell
MainWindow.xaml.cs - Navigation
MVVM/ViewModels/Window/StockMasterViewModel.cs - Product view
UI/Views/ProductosView.xaml.cs - Category panel
UI/Panels/Products/CategorysManagementControl.xaml.cs - Login flow
MVVM/ViewModels/Login/LoginViewModel.cs
Inventory management
- Product workflow
MVVM/ViewModels/Pages/ProductViewModel.cs - Product form
MVVM/ViewModels/Forms/ProductFormViewModel.cs - Category workflow
MVVM/ViewModels/Panels/CategorysManagementVM.cs - Product deletion
MVVM/ViewModels/Dialogs/DeleteProductViewModel.cs - Product record
MVVM/Models/Product/Product.cs - Category record
MVVM/Models/Categroy/Category.cs - Stock movements
UI/Views/MovimientosView.xaml.cs - Reports
UI/Views/DocumentosView.xaml.cs
Application services
- Product service
Services/Product/Implementations/ProductService.cs - Category service
Services/Category/Implementations/CategoryService.cs - Authentication
Services/Login/Implementations/DatabaseAuthenticationService.cs
Persistence
- Product repository
Services/Data/ProductDate/ProductRepository.cs - Category repository
Services/Data/CategoryDate/CategoryRepository.cs - User repository
Services/Data/Login/UserAccessRepository.cs - Connection manager
BaseDirectory/DatabaseManager.cs - StockMaster SQLite
Other components
- User
Connections 20
- User → WPF shell: starts
- WPF shell → Login flow: creates
- WPF shell → Navigation: opens
- Navigation → Product view: navigates
- Product view → Product workflow: creates
UI/Views/ProductosView.xaml.cs - Category panel → Category workflow: uses
- Category panel → WPF shell: uses composition
UI/Panels/Products/CategorysManagementControl.xaml.cs - Login flow → Authentication: validates credentials
- Authentication → User repository: authenticates
Services/Login/Implementations/DatabaseAuthenticationService.cs - Product workflow → Product service: requests operations
- Product form → Product service: submits changes
- Product deletion → Product service: deletes product
- Category workflow → Category service: requests operations
- Product service → Product repository: reads and writes
Services/Product/Implementations/ProductService.cs - Product service → Category repository: reads categories
Composition/Bootstrapper.cs - Category service → Category repository: reads and writes
Services/Category/Implementations/CategoryService.cs - Product repository → Connection manager: opens connection
Services/Data/ProductDate/ProductRepository.cs - Category repository → Connection manager: opens connection
Services/Data/CategoryDate/CategoryRepository.cs - User repository → Connection manager: opens connection
Services/Data/Login/UserAccessRepository.cs - Connection manager → StockMaster SQLite: connects
BaseDirectory/DatabaseManager.cs