This commit is contained in:
Userok 2024-12-27 11:59:46 +03:00
parent 094e38cd1d
commit 3c0410d83a

View File

@ -39,9 +39,14 @@ public partial class MainWindow : Window
private void LoadServices()
{
Services.Add(new Service { Name = "Услуга 1", Price = 100, Duration = 30, Discount = 0 });
Services.Add(new Service { Name = "Услуга 2", Price = 200, Duration = 60, Discount = 10 });
Services.Add(new Service { Name = "Услуга 3", Price = 150, Duration = 45, Discount = 20 });
using (var context = new AppDbContext())
{
var services = context.Services.ToList();
foreach (var service in services)
{
Services.Add(service);
}
}
}
private void UpdateFilteredServices()