Demka_kur/OknaRoley/StarshiyWindow.axaml
2025-03-05 12:12:58 +03:00

31 lines
1.2 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"
xmlns:local="clr-namespace:Demka_Snova_1.Hardik.Conect.Dao"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Demka_Snova_1.OknaRoley.StarshiyWindow"
Title="StarshiyWindow">
<Grid VerticalAlignment="Top" HorizontalAlignment="Center">
<StackPanel>
<Button Content="Сформировать заказ" Click="FormatZakaz_Click"/>
<Button Content="Принять товар" Click="PrinatZakaz_Click"/>
<Button Content="Выход" Click="Exitka"/>
<ListBox x:Name="OrdersListBox" Width="400" Margin="0,10,0,0">
<ListBox.ItemTemplate>
<DataTemplate DataType="local:ordersDao">
<StackPanel>
<TextBlock Text="{Binding CodeZakaz}" FontWeight="Bold"/>
<TextBlock Text="{Binding Status}"/>
<TextBlock Text="{Binding Usluga}"/>
<TextBlock Text="{Binding Prokat, StringFormat='Прокат: {0:C}'}"/>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
</Grid>
</Window>