buechermarkt/BuechermarktClient/Sell.xaml
Fabian Stamm d5f81e3348 Changes
2017-09-27 15:57:10 +02:00

63 lines
3.3 KiB
XML

<Window x:Class="BuechermarktClient.Sell"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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:BuechermarktClient"
mc:Ignorable="d"
Title="Sell" Height="300" Width="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Content="Hinzufügen:" Grid.Column="0"></Label>
<TextBox Grid.Column="1" Text="{Binding AddField, Mode=Default}" ForceCursor="True"></TextBox>
<Button Content="A" Grid.Column="2" Width="25" Click="Add_Click"/>
</Grid>
<ListView Grid.Row="1" Name="BooksList">
<ListView.View>
<GridView>
<GridViewColumn Header="SID" DisplayMemberBinding="{Binding StudentId}" Width="Auto"></GridViewColumn>
<GridViewColumn Header="BID" DisplayMemberBinding="{Binding LabelId}" Width="Auto"></GridViewColumn>
<GridViewColumn Header="Buchtyp" DisplayMemberBinding="{Binding bookType}" Width="Auto"></GridViewColumn>
<GridViewColumn Header="Preis" DisplayMemberBinding="{Binding Price}" Width="Auto"></GridViewColumn>
</GridView>
</ListView.View>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<EventSetter Event="PreviewMouseDoubleClick" Handler="ListViewItem_PreviewMouseUp"></EventSetter>
</Style>
</ListView.ItemContainerStyle>
</ListView>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Content="SV: " HorizontalContentAlignment="Right"></Label>
<Label Grid.Column="1" Content="{Binding Path=SvSum, Mode=TwoWay}"></Label>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Content="Gesamt: " HorizontalContentAlignment="Right"></Label>
<Label Grid.Column="1" Content="{Binding Path=TotalSum, Mode=TwoWay}" FontSize="16" FontWeight="Bold"></Label>
</Grid>
<Button Grid.Row="4" Content="Abschließen" VerticalAlignment="Center" Click="SellAll_Click">
</Button>
</Grid>
</Window>