How phuoctan221/c_sharp_nhom works
This is a WPF real-estate listing application backed by SQL Server. Users register or sign in, browse and filter sale/rental listings, open listing details, and save favorites; signed-in users can manage their listings, while admins can manage accounts. The graph includes documented database entities and capabilities, but several screens were not sampled, so their internal calls are omitted rather than inferred. The README documents the database schema; source excerpts show both shared-helper and direct SQL access patterns.
Main entry points: DatabaseHelper.cs Listing data helper · CardBatDongSan.xaml.cs Listing card · TimKiem.xaml.cs Listing search · DangNhap.xaml.cs Sign in
Components 18
App navigation
- Main window
MainWindow.xaml.cs - Contact screen
Contact.xaml.cs
Listing experience
- Home listings
TrangChu.xaml.cs - Listing search
TimKiem.xaml.cs - Listing card
CardBatDongSan.xaml.cs - Listing details
ChiTiet.xaml.cs - Create/edit listing
DangTin.xaml.cs - Manage listings
QuanLyTin.xaml.cs - Saved listings
YeuThich.xaml.cs
Accounts and administration
- Sign in
DangNhap.xaml.cs - Registration
DangKy.xaml.cs - Manage accounts
QuanLyTaiKhoan.xaml.cs - Account editor
SuaTaiKhoan.xaml.cs
Data access and entities
- Listing data helper
DatabaseHelper.cs - User model
NguoiDung.cs - Listing model
TinDang.cs - BatDongSanDB
Other components
- App user
Connections 22
- App user → Sign in: enters credentials
- Sign in → Main window: sets user and navigates
DangNhap.xaml.cs - Listing search → Listing data helper: queries listings
TimKiem.xaml.cs - Listing search → Listing model: displays results
TimKiem.xaml.cs - Listing search → Listing card: creates cards
TimKiem.xaml.cs - Home listings → Listing data helper: loads listings
TrangChu.xaml.cs - Listing card → Listing data helper: checks and saves favorites
CardBatDongSan.xaml.cs - Listing card → Listing details: opens listing details
CardBatDongSan.xaml.cs - Listing details → Listing data helper: loads listing and favorites
ChiTiet.xaml.cs - Create/edit listing → Listing data helper: loads and saves listing
DangTin.xaml.cs - Create/edit listing → Listing model: builds listing
DangTin.xaml.cs - Manage listings → BatDongSanDB: queries and deletes listings
QuanLyTin.xaml.cs - Saved listings → BatDongSanDB: queries saved listings
YeuThich.xaml.cs - Saved listings → Listing card: renders saved listings
YeuThich.xaml.cs - Registration → BatDongSanDB: checks and inserts accounts
DangKy.xaml.cs - Sign in → BatDongSanDB: authenticates account
DangNhap.xaml.cs - Manage accounts → BatDongSanDB: queries and deletes accounts
QuanLyTaiKhoan.xaml.cs - Manage accounts → Account editor: opens editor
QuanLyTaiKhoan.xaml.cs - Account editor → BatDongSanDB: reads and writes account
SuaTaiKhoan.xaml.cs - Listing data helper → BatDongSanDB: runs SQL operations
DatabaseHelper.cs - Listing data helper → User model: maps account data
DatabaseHelper.cs - Listing data helper → Listing model: maps listing data
DatabaseHelper.cs