77 lines
2.8 KiB
XML
77 lines
2.8 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="demo_blagodat.ChangeServices"
|
|
xmlns:vm="using:demo_blagodat.Models"
|
|
Title="Изменить услугу"
|
|
Icon="avares://demo_blagodat/Assets/logo.ico">
|
|
<DockPanel>
|
|
<ScrollViewer>
|
|
<StackPanel Spacing="15" Orientation="Vertical">
|
|
<TextBlock Text="Выберите Сервис"/>
|
|
<ComboBox Name="ListServices" SelectionChanged="ComboBox_SelectionChanged">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate x:DataType="vm:Service">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{Binding ServiceName}"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
|
|
<StackPanel Spacing="15" HorizontalAlignment="Center" Orientation="Horizontal">
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock Text="Введите название услуги"/>
|
|
<TextBox Width="300" x:Name="TextNewName" Text=""/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock Text="Введите код услуги"/>
|
|
<TextBox Width="300" x:Name="TextNewCode" Text=""/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock Text="Введите цену в час"/>
|
|
<TextBox Width="300" x:Name="TextNewPrice" Text=""/>
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Vertical" VerticalAlignment="Center">
|
|
<Button Content="Изменить данные Услуги" Click="changeClient"/>
|
|
<Button Content="Отчислить данные" Click="clear"/>
|
|
<Button Content="Вернуться назад" Click="ExitClik"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
|
<TextBlock x:Name="MesAddError" Text="" Foreground="Red"/>
|
|
<TextBlock x:Name="MesAdd" Text="" Foreground="Green"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Spacing="15" HorizontalAlignment="Center" Orientation="Horizontal">
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock Text="Название услуги"/>
|
|
<TextBlock Width="300" x:Name="SelectName"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock Text="Код услуги"/>
|
|
<TextBlock Width="300" x:Name="SelectCode"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock Text="Цена услуги в час"/>
|
|
<TextBlock Width="300" x:Name="SelectPrice"/>
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</DockPanel>
|
|
</Window>
|