demka/demofinish/EditWindow.axaml
2025-04-11 13:23:21 +03:00

49 lines
3.3 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="demofinish.EditWindow"
x:CompileBindings="False"
Icon="C:\Users\Class_Student\RiderProjects\demka\demofinish\bin\Debug\net8.0\Assets\save.ico"
Title="Окно редактирвания">
<DockPanel >
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="5">
<TextBlock Text="Наименование:" Margin="5" VerticalAlignment="Center"/>
<TextBox x:Name="NameBox" Width="200" VerticalAlignment="Center" Margin="5"/>
<TextBlock Text="Приоритет:" Margin="5" VerticalAlignment="Center"/>
<TextBox x:Name="PriorityBox" Width="200" VerticalAlignment="Center" Margin="5" />
<TextBlock Text="Имя директора:" Margin="5" VerticalAlignment="Center"/>
<TextBox x:Name="BossNameBox" Width="200" VerticalAlignment="Center" Margin="5" />
<TextBlock Text="ИНН:" Margin="5" VerticalAlignment="Center"/>
<TextBox x:Name="InnBox" Width="200" VerticalAlignment="Center" Margin="5" />
<TextBlock Text="КПП:" Margin="5" VerticalAlignment="Center"/>
<TextBox x:Name="KppBox" Width="200" VerticalAlignment="Center" Margin="5" />
<TextBlock Text="Телефон:" Margin="5" VerticalAlignment="Center"/>
<TextBox x:Name="PhoneBox" Width="200" VerticalAlignment="Center" Margin="5" />
<TextBlock Text="Email:" Margin="5" VerticalAlignment="Center"/>
<TextBox x:Name="EmailBox" Width="200" VerticalAlignment="Center" Margin="5" />
<TextBlock Text="Адрес:" Margin="5" VerticalAlignment="Center"/>
<TextBox x:Name="AdressBox" Width="200" VerticalAlignment="Center" Margin="5" />
<TextBlock Text="Тип агента:" Margin="5" VerticalAlignment="Center"/>
<ComboBox x:Name="AgentTypeBox">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Title}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
<StackPanel DockPanel.Dock="Bottom" HorizontalAlignment="Center" Orientation="Horizontal">
<Button Content="Готово" Margin="5" Click="EditAgent_Button"/>
<Button Content="Назад" Click="BackButton" Margin="5"/>
<Button Content="Удалить" Click="DeleteButton" Margin="5" Background="Red" Foreground="White"/>
<TextBlock Text="" x:Name="ErrorTextBlock" Margin="5"/>
</StackPanel>
</DockPanel>
</Window>