How hithami/sistemacoworking works
CoworkingTeste is a Windows Forms application for managing coworking rooms and their bookings. Users enter through the menu, then manage rooms or create and remove bookings; the forms call repositories that read and write PostgreSQL data, which is also shown as a room name in booking listings. The README documents database-enforced validation, overlap prevention, protected deletion of rooms with future bookings, and operation logging. Source excerpts establish the form-to-repository and repository-to-connection behavior; menu navigation and SQL implementation details are not sampled, so those links are marked unverified or documented rather than inferred from code.
Main entry points: FormAgendamento.cs Booking management · SalaRepository.cs Room repository · AgendamentoRepository.cs Booking repository · FormMenu.cs Main menu
Components 12
Desktop interface
- Application entry
CoworkingTeste/Program.cs - Main menu
CoworkingTeste/Forms/FormMenu/FormMenu.cs - Room management
CoworkingTeste/Forms/FormSala/FormSala.cs - Booking management
CoworkingTeste/Forms/FormAgendamento/FormAgendamento.cs
Domain models
- Room model
CoworkingTeste/Models/Sala.cs - Booking model
CoworkingTeste/Models/Agendamento.cs
Data access
- Room repository
CoworkingTeste/Repositories/SalaRepository.cs - Booking repository
CoworkingTeste/Repositories/AgendamentoRepository.cs - Connection factory
CoworkingTeste/Conexao.cs
Database rules
- Schema and triggers
banco.sql
Other components
- Coworking user
- PostgreSQL database
Connections 18
- Coworking user → Main menu: uses
README.md - Application entry → Main menu: starts
CoworkingTeste/Program.cs - Main menu → Room management: opens
- Main menu → Booking management: opens
- Room management → Room repository: calls
CoworkingTeste/Forms/FormSala/FormSala.cs - Room management → Room model: displays
CoworkingTeste/Forms/FormSala/FormSala.cs - Booking management → Room repository: loads rooms
CoworkingTeste/Forms/FormAgendamento/FormAgendamento.cs - Booking management → Booking repository: manages bookings
CoworkingTeste/Forms/FormAgendamento/FormAgendamento.cs - Booking management → Room model: displays
CoworkingTeste/Forms/FormAgendamento/FormAgendamento.cs - Booking management → Booking model: displays
CoworkingTeste/Forms/FormAgendamento/FormAgendamento.cs - Room repository → Room model: maps rows
CoworkingTeste/Repositories/SalaRepository.cs - Booking repository → Booking model: maps rows
CoworkingTeste/Repositories/AgendamentoRepository.cs - Room repository → Connection factory: creates connection
CoworkingTeste/Repositories/SalaRepository.cs - Booking repository → Connection factory: creates connection
CoworkingTeste/Repositories/AgendamentoRepository.cs - Connection factory → PostgreSQL database: connects
README.md - Room repository → PostgreSQL database: reads and writes
CoworkingTeste/Repositories/SalaRepository.cs - Booking repository → PostgreSQL database: reads and writes
CoworkingTeste/Repositories/AgendamentoRepository.cs - Schema and triggers → PostgreSQL database: defines rules
README.md