diff --git a/Demka-2/Demka-2.csproj b/Demka-2/Demka-2.csproj
index efc7117..8e6ff42 100644
--- a/Demka-2/Demka-2.csproj
+++ b/Demka-2/Demka-2.csproj
@@ -20,4 +20,10 @@
+
+
+
+ ServiceFormWindow.axaml
+
+
diff --git a/Demka-2/Use/Service.cs b/Demka-2/Use/Service.cs
index 7f7f1a6..d7d2402 100644
--- a/Demka-2/Use/Service.cs
+++ b/Demka-2/Use/Service.cs
@@ -5,6 +5,7 @@ public class Service
{
public Guid guid { get; set; }
public string Name { get; set; }
+ public string ImagePath { get; set; }
public decimal Price { get; set; }
public decimal Discount { get; set; }
public int Duration { get; set; }
diff --git a/Demka-2/Views/MainWindow.axaml b/Demka-2/Views/MainWindow.axaml
index 49334ce..89dce4b 100644
--- a/Demka-2/Views/MainWindow.axaml
+++ b/Demka-2/Views/MainWindow.axaml
@@ -15,11 +15,22 @@
+
+
+
+
-
+
+
+
+
+
+
+
+
diff --git a/Demka-2/Views/MainWindow.axaml.cs b/Demka-2/Views/MainWindow.axaml.cs
index 3f0aab0..d7ba665 100644
--- a/Demka-2/Views/MainWindow.axaml.cs
+++ b/Demka-2/Views/MainWindow.axaml.cs
@@ -4,6 +4,7 @@ using System.Collections.ObjectModel;
using System.Linq;
using Demka_2.Use;
using System;
+using Avalonia.Interactivity;
namespace Demka_2.Views;
@@ -16,7 +17,12 @@ public partial class MainWindow : Window
private ComboBox _discountFilter;
private ListBox _serviceList;
private TextBlock _serviceCountText;
+ private TextBox _adminCodeBox;
+ private Button _adminLoginButton;
+ private StackPanel _adminControls;
+ private const string AdminCode = "0000";
+ private bool IsAdminMode = false;
public MainWindow()
{
InitializeComponent();
@@ -31,10 +37,35 @@ public partial class MainWindow : Window
_discountFilter = this.FindControl("DiscountFilter");
_serviceList = this.FindControl("ServiceList");
_serviceCountText = this.FindControl("ServiceCountText");
+ _adminCodeBox = this.FindControl("AdminCodeBox");
+ _adminLoginButton = this.FindControl