How ggongon554684-rgb/wayplot works
WayPlot is a multi-tenant real-estate CRM, with a WinForms client for managing parcels, contacts, and leads, plus an API that handles authentication. The main workflow is to sign in, work from the parcel map or list screens, capture contacts, attach them to parcels as leads, and advance leads through a guarded sales pipeline. Tenant-scoped services persist changes through repositories and dispatch domain events. The README is empty; unsampled features such as payments and business intelligence are represented only where the tree supports them, without inferred runtime connections.
Main entry points: Program.cs Desktop startup · LeadService.cs Lead management · ParcelMapPresenter.cs Map presenter · ContactService.cs Contact capture
Components 30
Desktop client
- Desktop startup
WayPlot/Program.cs - Login screen
WayPlot/LoginForm.cs - Auth client
WayPlot/AuthClient.cs - Main shell
WayPlot/Views/MainShell.cs - Parcel map view
WayPlot/Views/ParcelMapView.cs - Map control
WayPlot/UI/ParcelMapControl.cs - Map presenter
WayPlot/Presenters/ParcelMapPresenter.cs - Contacts view
WayPlot/Views/ContactsView.cs - Contacts presenter
WayPlot/Presenters/ContactsPresenter.cs - Leads view
WayPlot/Views/LeadsView.cs - Leads presenter
WayPlot/Presenters/LeadsPresenter.cs
CRM domain
- Contact capture
WayPlot.domain/Services/DataCollection/ContactService.cs - Parcel management
WayPlot.domain/Services/DataCollection/ParcelService.cs - Lead management
WayPlot.domain/Services/DataCollection/LeadService.cs - Pipeline rules
WayPlot.domain/Services/MainTransaction/PipelineRules.cs - CRM entities
WayPlot.domain/Entities/DataCollection.cs - Deals and payments
WayPlot.domain/Entities/DealsPayments.cs - Tenant features
WayPlot.domain/Services/Admin/TenantFeatures.cs - Domain events
WayPlot.domain/Events/Events.cs
Tenant infrastructure
- Repository contracts
WayPlot.domain/Repositories/Repositories.cs - EF repositories
WayPlot.infrastructure/Repositories/EfRepositories.cs - Tenant unit of work
WayPlot.infrastructure/Repositories/TenantUnitOfWork.cs - Tenant database
WayPlot.infrastructure/Data/TenantDbContext.cs - Tenant session
WayPlot.infrastructure/Tenancy/TenantSession.cs - Session starter
WayPlot.infrastructure/Tenancy/SessionStarter.cs - Event dispatcher
WayPlot.infrastructure/Events/DomainEventDispatcher.cs
Authentication
- Auth API
WayPlot.api/Controllers/AuthController.cs - Identity user
WayPlot.infrastructure/Identity/AppUser.cs - Master database
WayPlot.infrastructure/Data/MasterDbContext.cs
Other components
- Staff user
Connections 28
- Staff user → Desktop startup: starts client
WayPlot/Program.cs - Desktop startup → Login screen: opens
WayPlot/Program.cs - Desktop startup → Auth client: registers
WayPlot/Program.cs - Desktop startup → Main shell: builds after login
WayPlot/Program.cs - Desktop startup → Parcel map view: creates
WayPlot/Program.cs - Desktop startup → Map presenter: wires
WayPlot/Program.cs - Desktop startup → Contacts view: creates
WayPlot/Program.cs - Desktop startup → Contacts presenter: wires
WayPlot/Program.cs - Desktop startup → Leads view: creates
WayPlot/Program.cs - Desktop startup → Leads presenter: wires
WayPlot/Program.cs - Parcel map view → Map control: uses
- Map presenter → Parcel management: uses
WayPlot/Presenters/ParcelMapPresenter.cs - Map presenter → Lead management: uses
WayPlot/Presenters/ParcelMapPresenter.cs - Map presenter → Contact capture: uses
WayPlot/Presenters/ParcelMapPresenter.cs - Contacts presenter → Contact capture: uses
- Leads presenter → Lead management: uses
- Contact capture → Repository contracts: queries and saves
WayPlot.domain/Services/DataCollection/ContactService.cs - Parcel management → Repository contracts: queries and saves
WayPlot.domain/Services/DataCollection/ParcelService.cs - Lead management → Repository contracts: queries and saves
WayPlot.domain/Services/DataCollection/LeadService.cs - Lead management → Pipeline rules: checks transitions
WayPlot.domain/Services/DataCollection/LeadService.cs - Contact capture → Domain events: dispatches inquiry
WayPlot.domain/Services/DataCollection/ContactService.cs - Lead management → Domain events: dispatches lead events
WayPlot.domain/Services/DataCollection/LeadService.cs - EF repositories → Repository contracts: implements
WayPlot.infrastructure/Repositories/EfRepositories.cs - EF repositories → Tenant database: uses
WayPlot.infrastructure/Repositories/EfRepositories.cs - Session starter → Tenant session: sets session
WayPlot.infrastructure/Tenancy/SessionStarter.cs - Auth API → Identity user: uses
WayPlot.api/Controllers/AuthController.cs - Auth API → Master database: queries
WayPlot.api/Controllers/AuthController.cs - Desktop startup → Auth API: authenticates via HTTP