add DatePicker and ScrollViewer

This commit is contained in:
NikitaOnianov 2025-03-11 11:26:18 +03:00
parent f63e4d41bc
commit b617f2e014
47 changed files with 116 additions and 182 deletions

View File

@ -1,32 +1,7 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\changeclient.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\changeclient.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\heir.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\heir.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\heir.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\heir.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
},
{
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\deleteclient.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\deleteclient.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\changeclient.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\changeclient.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
},
{
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\models\\client.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:models\\client.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"Documents": [],
"DocumentGroupContainers": [
{
"Orientation": 0,
@ -34,7 +9,7 @@
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 5,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
@ -43,82 +18,6 @@
{
"$type": "Bookmark",
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "Heir.axaml.cs",
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\Heir.axaml.cs",
"RelativeDocumentMoniker": "Functions\\Heir.axaml.cs",
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\Heir.axaml.cs",
"RelativeToolTip": "Functions\\Heir.axaml.cs",
"ViewState": "AgIAACoAAAAAAAAAAAAAABsAAAAFAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-03-09T19:44:15.189Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "Heir.axaml",
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\Heir.axaml",
"RelativeDocumentMoniker": "Functions\\Heir.axaml",
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\Heir.axaml",
"RelativeToolTip": "Functions\\Heir.axaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2025-03-09T19:43:26.417Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "DeleteClient.axaml.cs",
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\DeleteClient.axaml.cs",
"RelativeDocumentMoniker": "Functions\\DeleteClient.axaml.cs",
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\DeleteClient.axaml.cs",
"RelativeToolTip": "Functions\\DeleteClient.axaml.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-03-09T19:41:40.367Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "ChangeClient.axaml.cs",
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeClient.axaml.cs",
"RelativeDocumentMoniker": "Functions\\ChangeClient.axaml.cs",
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeClient.axaml.cs*",
"RelativeToolTip": "Functions\\ChangeClient.axaml.cs*",
"ViewState": "AgIAACIAAAAAAAAAAAAwwDEAAABSAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-03-09T19:39:06.531Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "ChangeClient.axaml",
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeClient.axaml",
"RelativeDocumentMoniker": "Functions\\ChangeClient.axaml",
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeClient.axaml",
"RelativeToolTip": "Functions\\ChangeClient.axaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2025-03-09T19:39:02.539Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 5,
"Title": "Client.cs",
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Models\\Client.cs",
"RelativeDocumentMoniker": "Models\\Client.cs",
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Models\\Client.cs",
"RelativeToolTip": "Models\\Client.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAkAAAAcAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-03-09T19:24:32.315Z",
"EditorCaption": ""
}
]
}

View File

@ -5,21 +5,23 @@
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="550"
x:Class="demo_blagodat.Registration"
Title="Регистрация">
<StackPanel Spacing="15" HorizontalAlignment="Center" VerticalAlignment="Center">
<ScrollViewer>
<StackPanel Spacing="15" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="Введите ФИО"></TextBlock>
<TextBox Width="300" x:Name="NameTextBox" ></TextBox>
<TextBlock Text="Введите ФИО"></TextBlock>
<TextBox Width="300" x:Name="NameTextBox" ></TextBox>
<TextBlock Text="Введите Логин"></TextBlock>
<TextBox Width="300" x:Name="LoginTextBox" ></TextBox>
<TextBlock Text="Введите Логин"></TextBlock>
<TextBox Width="300" x:Name="LoginTextBox" ></TextBox>
<TextBlock Text="Введите пароль"/>
<TextBox Width="300" x:Name="PasswordTextBox" ></TextBox>
<TextBlock x:Name="position" Text="Выберите должность: "/>
<StackPanel Orientation="Horizontal">
<Button Content="Продавец" Click="sellerUser"/>
<Button Content="Старший смены" Click="shiftSupervisorUser"/>
<TextBlock Text="Введите пароль"/>
<TextBox Width="300" x:Name="PasswordTextBox" ></TextBox>
<TextBlock x:Name="position" Text="Выберите должность: "/>
<StackPanel Orientation="Horizontal">
<Button Content="Продавец" Click="sellerUser"/>
<Button Content="Старший смены" Click="shiftSupervisorUser"/>
</StackPanel>
<Button x:Name="RegisterClick" Click="RegisterClick_OnClick" Content="Зарегистрироваться"/>
</StackPanel>
<Button x:Name="RegisterClick" Click="RegisterClick_OnClick" Content="Зарегистрироваться"/>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -6,7 +6,9 @@
x:Class="demo_blagodat.AddClient"
xmlns:vm="using:demo_blagodat.Models"
Title="Добавление клиентов">
<ScrollViewer>
<StackPanel Orientation="Vertical">
<StackPanel Spacing="10" HorizontalAlignment="Center" Orientation="Horizontal">
<StackPanel Orientation="Vertical">
@ -21,7 +23,7 @@
<StackPanel Orientation="Vertical">
<TextBlock Text="Введите дату рождения (цифрами)"/>
<TextBox Width="300" x:Name="TextBirthday"/>
<DatePicker Name="calendar"/>
</StackPanel>
</StackPanel>
@ -86,5 +88,7 @@
</ListBox>
</ScrollViewer>
</Border>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -7,6 +7,7 @@ using System.Runtime.ExceptionServices;
using System;
using System.Linq;
using System.Collections.ObjectModel;
using System.Globalization;
namespace demo_blagodat;
@ -39,7 +40,7 @@ public partial class AddClient : Window
int id = db.Clients.Max(it => it.ClientCode) + 1; // áåð¸ì ìàêñèìàëüíûé ID ïîëüçîâàòåëÿ è ïðèáàâëÿåì "1"
string name = TextName.Text;
string pas = TextPassport.Text;
DateOnly date = DateOnly.TryParse(TextBirthday.Text, out var BirthDate) ? BirthDate : new DateOnly();
DateOnly date = DateOnly.FromDateTime(calendar.SelectedDate.Value.Date);
string address = TextAddress.Text;
string email = TextEmail.Text;
string password = TextPassword.Text;
@ -66,7 +67,7 @@ public partial class AddClient : Window
// Ñòåðàåì âñå äàííûå
TextName.Text = "";
TextPassport.Text = "";
TextBirthday.Text = "";
calendar.SelectedDate = null;
TextAddress.Text = "";
TextEmail.Text = "";
TextPassword.Text = "";

View File

@ -6,6 +6,7 @@
x:Class="demo_blagodat.CreateOrder"
xmlns:vm="using:demo_blagodat.Models"
Title="Создание заказа">
<ScrollViewer>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
<StackPanel Spacing="15" HorizontalAlignment="Center">
@ -35,8 +36,8 @@
</StackPanel>
<StackPanel Orientation="Vertical">
<TextBlock Text="Введите дату закрытия заказа в цифрах (если можно)"/>
<TextBox Width="300" x:Name="TextOrderClosingDate" Text=""/>
<TextBlock Text="Введите дату закрытия заказа (если можно)"/>
<DatePicker Name="calendar"/>
</StackPanel>
</StackPanel>
@ -61,4 +62,5 @@
<TextBlock x:Name="MesAdd" Text="" Foreground="Green"/>
</StackPanel>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -39,7 +39,7 @@ public partial class CreateOrder : Window
Client client = db.Clients.Where(it => it == sender).FirstOrDefault();
int order_rental_time = int.Parse(TextOrderRentalTime.Text);
DateOnly? order_closing_date = DateOnly.TryParse(TextOrderClosingDate.Text, out var Date) ? Date : null;
DateOnly? order_closing_date = DateOnly.FromDateTime(calendar.SelectedDate.Value.Date);
if (TextOrderRentalTime.Text != "")
{

View File

@ -5,6 +5,7 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="demo_blagodat.AddServices"
Title="Добавить новую услугу">
<ScrollViewer>
<StackPanel Spacing="15" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="Введите Название новой услуги"/>
@ -26,4 +27,5 @@
<TextBlock x:Name="MesAdd" Text="" Foreground="Green"/>
</StackPanel>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -6,6 +6,7 @@
x:Class="demo_blagodat.ChangeClient"
xmlns:vm="using:demo_blagodat.Models"
Title="Изменить клиента">
<ScrollViewer>
<StackPanel Spacing="15" Orientation="Vertical">
<TextBlock Text="Выберите Клиента"/>
@ -32,8 +33,8 @@
</StackPanel>
<StackPanel Orientation="Vertical">
<TextBlock Text="Введите дату рождения (цифрами)"/>
<TextBox Width="300" x:Name="TextNewBirthday" Text=""/>
<TextBlock Text="Введите дату рождения"/>
<DatePicker Name="calendar"/>
</StackPanel>
</StackPanel>
@ -105,4 +106,5 @@
</StackPanel>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -42,7 +42,7 @@ public partial class ChangeClient : Window
string? newname = TextNewName.Text;
string? newpas = TextNewPassport.Text;
string? newaddress = TextNewAddress.Text;
DateOnly? newdate = DateOnly.TryParse(TextNewBirthday.Text, out var BirthDate) ? BirthDate : null;
DateOnly? newdate = DateOnly.FromDateTime(calendar.SelectedDate.Value.Date);
string? newemail = TextNewEmail.Text;
string? newpassword = TextNewPassword.Text;
@ -111,7 +111,7 @@ public partial class ChangeClient : Window
MesAddError.Text = "";
}
if (TextNewName.Text == "" && TextNewPassport.Text == "" && TextNewBirthday.Text == "" && TextNewEmail.Text == "" && TextNewPassword.Text == "" && TextNewAddress.Text == "")
if (TextNewName.Text == "" && TextNewPassport.Text == "" && calendar.SelectedDate == null && TextNewEmail.Text == "" && TextNewPassword.Text == "" && TextNewAddress.Text == "")
{
// Ñîîáùåíèå
MesAdd.Text = "";
@ -140,7 +140,7 @@ public partial class ChangeClient : Window
{
TextNewName.Text = "";
TextNewPassport.Text = "";
TextNewBirthday.Text = "";
calendar.SelectedDate = null;
TextNewAddress.Text = "";
TextNewEmail.Text = "";
TextNewPassword.Text = "";

View File

@ -5,7 +5,9 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="demo_blagodat.ChangeOrder"
Title="Изменить заказ">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<Button Content="Назад" Click="ExitClik"/>
</StackPanel>
<ScrollViewer>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<Button Content="Назад" Click="ExitClik"/>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -5,6 +5,7 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="demo_blagodat.ChangeServices"
Title="Изменить услугу">
<ScrollViewer>
<StackPanel Spacing="15" Orientation="Vertical">
<TextBlock Text="Введите код сервиса:"/>
<TextBox x:Name="Name"/>
@ -59,4 +60,5 @@
</StackPanel>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -5,6 +5,7 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="demo_blagodat.ChangeYourSelf"
Title="Изменить свои данные">
<ScrollViewer>
<StackPanel Spacing="15" Orientation="Vertical">
@ -59,4 +60,5 @@
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -6,10 +6,11 @@
x:Class="demo_blagodat.DeleteClient"
xmlns:vm="using:demo_blagodat.Models"
Title="Удалить клиента">
<ScrollViewer>
<StackPanel>
<StackPanel HorizontalAlignment="Center" Orientation="Vertical" VerticalAlignment="Center">
<Button Content="Удвлить Клиента" Click="deleteclient"/>
<Button Content="Удалить Клиента" Click="deleteclient"/>
<Button Content="Вернуться назад" Click="ExitClik"/>
</StackPanel>
<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
@ -50,4 +51,5 @@
</ScrollViewer>
</Border>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -6,10 +6,11 @@
x:Class="demo_blagodat.DeleteEmployee"
x:CompileBindings="False"
Title="Удалить сотрудника">
<ScrollViewer>
<StackPanel Orientation="Vertical">
<StackPanel HorizontalAlignment="Center" Orientation="Vertical" VerticalAlignment="Center">
<Button Content="Удвлить Сотрудника" Click="deleteEmployee"/>
<Button Content="Удалить Сотрудника" Click="deleteEmployee"/>
<Button Content="Вернуться назад" Click="ExitClik"/>
</StackPanel>
<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
@ -34,4 +35,5 @@
</ScrollViewer>
</Border>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -6,6 +6,7 @@
x:Class="demo_blagodat.DeleteOrder"
xmlns:vm="using:demo_blagodat.Models"
Title="Удалить заказ">
<ScrollViewer>
<StackPanel Orientation="Horizontal">
<StackPanel Spacing="15" HorizontalAlignment="Center" Orientation="Vertical">
<StackPanel Orientation="Vertical">
@ -73,4 +74,5 @@
<TextBlock x:Name="MesDel" Text="" Foreground="Green"/>
</StackPanel>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -5,6 +5,7 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="demo_blagodat.DeleteServices"
Title="Удалить Сервис">
<ScrollViewer>
<StackPanel Orientation="Vertical">
<StackPanel Spacing="15" HorizontalAlignment="Center" Orientation="Vertical">
@ -30,4 +31,5 @@
</StackPanel>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -6,6 +6,7 @@
x:Class="demo_blagodat.Heir"
xmlns:vm="using:demo_blagodat.Models"
Title="Наследник">
<ScrollViewer>
<StackPanel Spacing="15" Orientation="Vertical">
<TextBlock Text="Выберите нового Администратора"/>
@ -32,4 +33,5 @@
<Button Content="Назад" Click="ExitClick"/>
<TextBlock x:Name="MessError" Text="" Foreground="Red"/>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -5,6 +5,7 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="demo_blagodat.Admin"
Title="Администратор">
<ScrollViewer>
<StackPanel>
<TextBlock x:Name="HelloUser" Text="Добрый день, " HorizontalAlignment="Center" VerticalAlignment="Top"/>
<StackPanel HorizontalAlignment="Stretch">
@ -45,4 +46,5 @@
</StackPanel>
</StackPanel>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -5,40 +5,42 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="demo_blagodat.Seller"
Title="Продавец">
<StackPanel Orientation="Vertical" >
<TextBlock x:Name="HelloUser" Text="Добрый день, " HorizontalAlignment="Center" VerticalAlignment="Top"/>
<StackPanel>
<ScrollViewer>
<StackPanel Orientation="Vertical" >
<TextBlock x:Name="HelloUser" Text="Добрый день, " HorizontalAlignment="Center" VerticalAlignment="Top"/>
<StackPanel>
<TextBlock Text="Ваши данные:"/>
<TextBlock x:Name="Username" Text="Ваше имя: "/>
<TextBlock x:Name="Userlogin" Text="Ваш логин: "/>
<TextBlock x:Name="Userpassword" Text="Ваш пароль: "/>
<TextBlock x:Name="Userposition" Text="Ваша должность: "/>
</StackPanel>
<TextBlock Text="Доступные функции" HorizontalAlignment="Center"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<StackPanel>
<TextBlock Text="Ваши данные:"/>
<TextBlock x:Name="Username" Text="Ваше имя: "/>
<TextBlock x:Name="Userlogin" Text="Ваш логин: "/>
<TextBlock x:Name="Userpassword" Text="Ваш пароль: "/>
<TextBlock x:Name="Userposition" Text="Ваша должность: "/>
</StackPanel>
<TextBlock Text="Доступные функции" HorizontalAlignment="Center"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<StackPanel Orientation="Vertical">
<Button Content="Добавить клиента" Click="addClient"/>
<Button Content="Удалить клиента" Click="deleteClient"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<StackPanel Orientation="Vertical">
<Button Content="Добавить клиента" Click="addClient"/>
<Button Content="Удалить клиента" Click="deleteClient"/>
</StackPanel>
<StackPanel Orientation="Vertical">
<Button Content="Добавить услугу" Click="addServices"/>
<Button Content="Удалить услугу" />
</StackPanel>
<StackPanel Orientation="Vertical">
<Button Content="Добавить услугу" Click="addServices"/>
<Button Content="Удалить услугу" />
</StackPanel>
<StackPanel Orientation="Vertical">
<Button Content="Добавить заказ" Click="createOrder"/>
<Button Content="Удалить заказ" />
</StackPanel>
<StackPanel Orientation="Vertical">
<Button Content="Добавить заказ" Click="createOrder"/>
<Button Content="Удалить заказ" />
</StackPanel>
<StackPanel Orientation="Vertical">
<Button Content="Выход из приложения" Click="Exit"/>
<Button Content="Выход" Click="ExitAuthorization"/>
<StackPanel Orientation="Vertical">
<Button Content="Выход из приложения" Click="Exit"/>
<Button Content="Выход" Click="ExitAuthorization"/>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -5,33 +5,35 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="demo_blagodat.ShiftSupervisor"
Title="Начальник смены">
<StackPanel>
<TextBlock x:Name="HelloUser" Text="Добрый день, " HorizontalAlignment="Center" VerticalAlignment="Top"/>
<ScrollViewer>
<StackPanel>
<TextBlock x:Name="HelloUser" Text="Добрый день, " HorizontalAlignment="Center" VerticalAlignment="Top"/>
<StackPanel>
<TextBlock Text="Ваши данные:"/>
<TextBlock x:Name="Username" Text="Ваше имя: "/>
<TextBlock x:Name="Userlogin" Text="Ваш логин: "/>
<TextBlock x:Name="Userpassword" Text="Ваш пароль: "/>
<TextBlock x:Name="Userposition" Text="Ваша должность: "/>
</StackPanel>
<TextBlock Text="Доступные функции" HorizontalAlignment="Center"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<StackPanel Orientation="Vertical">
<Button Content="Добавить клиента" Click="addClient"/>
<Button Content="Удалить клиента" Click="deleteClient"/>
<StackPanel>
<TextBlock Text="Ваши данные:"/>
<TextBlock x:Name="Username" Text="Ваше имя: "/>
<TextBlock x:Name="Userlogin" Text="Ваш логин: "/>
<TextBlock x:Name="Userpassword" Text="Ваш пароль: "/>
<TextBlock x:Name="Userposition" Text="Ваша должность: "/>
</StackPanel>
<TextBlock Text="Доступные функции" HorizontalAlignment="Center"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<StackPanel Orientation="Vertical">
<Button Content="Добавить клиента" Click="addClient"/>
<Button Content="Удалить клиента" Click="deleteClient"/>
</StackPanel>
<StackPanel Orientation="Vertical">
<Button Content="Добавить заказ" Click="createOrder"/>
<Button Content="Удалить заказ" />
</StackPanel>
<StackPanel Orientation="Vertical">
<Button Content="Добавить заказ" Click="createOrder"/>
<Button Content="Удалить заказ" />
</StackPanel>
<StackPanel Orientation="Vertical">
<Button Content="Выход из приложения" Click="Exit"/>
<Button Content="Выход" Click="ExitAuthorization"/>
<StackPanel Orientation="Vertical">
<Button Content="Выход из приложения" Click="Exit"/>
<Button Content="Выход" Click="ExitAuthorization"/>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
</ScrollViewer>
</Window>

View File

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("demo_blagodat")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b008bbb7c3b4872362ba133dab1e4e56d88879b1")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f63e4d41bce29f31e8cca027a20f1c4f0ddbad69")]
[assembly: System.Reflection.AssemblyProductAttribute("demo_blagodat")]
[assembly: System.Reflection.AssemblyTitleAttribute("demo_blagodat")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
1996c7c7b98fd58da02e7dbb702e3e22f04fe74dad563ed472a35d21f12b144d
d63b72aa80eb2f6a00640f99908a69b82a4fdfcb728d063234bb70a027739d4a