|
@@ -8,21 +8,22 @@
|
|
d:DesignHeight="450" d:DesignWidth="800"
|
|
d:DesignHeight="450" d:DesignWidth="800"
|
|
Title="Guest">
|
|
Title="Guest">
|
|
|
|
|
|
- <Grid Background="White">
|
|
|
|
|
|
+ <Grid Background="LightGreen">
|
|
<Grid.RowDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="10*"/>
|
|
<RowDefinition Height="10*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
- <Button Click="CartGo" Name="ToCart" Content="Корзина" Visibility="Hidden"/>
|
|
|
|
- <ComboBox SelectionChanged="SortFilterChanged" Name="SortByName" Height="30" Margin="10,0,0,0" Width="200"/>
|
|
|
|
- <ComboBox SelectionChanged="SortFilterChanged" Name="FilterByPromo" Height="30" Margin="10,0,0,0" Width="200"/>
|
|
|
|
|
|
+ <Button BorderBrush="White" BorderThickness="2" Foreground="Green" Background="LightGreen" Width="100" Height="30" Click="CartGo" Name="ToCart" Content="Корзина" Visibility="Hidden"/>
|
|
|
|
+ <ComboBox Foreground="Green" Background="LightGreen" SelectionChanged="SortFilterChanged" Name="SortByName" Height="30" Margin="10,0,0,0" Width="200"/>
|
|
|
|
+ <ComboBox Foreground="Green" Background="LightGreen" SelectionChanged="SortFilterChanged" Name="FilterByPromo" Height="30" Margin="10,0,0,0" Width="200"/>
|
|
<TextBox TextChanged="SearchChanged" Name="SearchByName" Height="30" TextAlignment="Center" Margin="10,0,0,0" Width="200"/>
|
|
<TextBox TextChanged="SearchChanged" Name="SearchByName" Height="30" TextAlignment="Center" Margin="10,0,0,0" Width="200"/>
|
|
<TextBlock TextAlignment="Center" Margin="10,0,0,0" Name="AmountOfData"/>
|
|
<TextBlock TextAlignment="Center" Margin="10,0,0,0" Name="AmountOfData"/>
|
|
|
|
+ <Button BorderBrush="White" BorderThickness="2" Foreground="Green" Background="LightGreen" Width="100" Height="30" Click="BackToAuth" Content="Выйти"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
- <ListView Grid.Row="1" Name="ProductList" d:ItemsSource="{d:SampleData ItemCount=5}">
|
|
|
|
|
|
+ <ListView Background="White" Grid.Row="1" Name="ProductList" d:ItemsSource="{d:SampleData ItemCount=5}">
|
|
|
|
|
|
<ListView.ItemsPanel>
|
|
<ListView.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<ItemsPanelTemplate>
|
|
@@ -43,13 +44,13 @@
|
|
<StackPanel Orientation="Horizontal">
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Width="200" Height="195" Grid.Column="0" Uid="{Binding ProductArticleNumber}" Loaded="Photo"/>
|
|
<Image Width="200" Height="195" Grid.Column="0" Uid="{Binding ProductArticleNumber}" Loaded="Photo"/>
|
|
<StackPanel Margin="10,0,0,0" Width="300" HorizontalAlignment="Center" Grid.Column="1" Orientation="Vertical">
|
|
<StackPanel Margin="10,0,0,0" Width="300" HorizontalAlignment="Center" Grid.Column="1" Orientation="Vertical">
|
|
- <TextBlock Text="{Binding ProductName}"/>
|
|
|
|
- <TextBlock Text="{Binding ProductDescription}" TextWrapping="Wrap"/>
|
|
|
|
- <TextBlock Text="{Binding StringFormat=Произоводитель: {0},Path=Manufacturers.ManufacturerName}"/>
|
|
|
|
- <TextBlock Text="{Binding ProductCost}" Uid="{Binding ProductArticleNumber}" Loaded="StrikePrice"/>
|
|
|
|
- <TextBlock Text="{Binding ProductCost}" Uid="{Binding ProductArticleNumber}" Loaded="PromoPrice"/>
|
|
|
|
|
|
+ <TextBlock Foreground="Green" Text="{Binding ProductName}"/>
|
|
|
|
+ <TextBlock Foreground="Green" Text="{Binding ProductDescription}" TextWrapping="Wrap"/>
|
|
|
|
+ <TextBlock Foreground="Green" Text="{Binding StringFormat=Произоводитель: {0},Path=Manufacturers.ManufacturerName}"/>
|
|
|
|
+ <TextBlock Foreground="Green" Text="{Binding ProductCost}" Uid="{Binding ProductArticleNumber}" Loaded="StrikePrice"/>
|
|
|
|
+ <TextBlock Foreground="Green" Text="{Binding ProductCost}" Uid="{Binding ProductArticleNumber}" Loaded="PromoPrice"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
- <TextBlock Margin="10,0,0,0" HorizontalAlignment="Center" Grid.Column="2" Text="{Binding StringFormat=Скидка: {0}%, Path=ProductMaxDiscountAmount}"/>
|
|
|
|
|
|
+ <TextBlock FontWeight="Bold" Foreground="Green" Margin="10,0,0,0" HorizontalAlignment="Center" Grid.Column="2" Text="{Binding StringFormat=Скидка: {0}%, Path=ProductMaxDiscountAmount}"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
@@ -60,9 +61,14 @@
|
|
</ListView>
|
|
</ListView>
|
|
|
|
|
|
<StackPanel Name="ButtonsForAdmin" Visibility="Hidden" HorizontalAlignment="Center" Orientation="Horizontal" Grid.Row="2">
|
|
<StackPanel Name="ButtonsForAdmin" Visibility="Hidden" HorizontalAlignment="Center" Orientation="Horizontal" Grid.Row="2">
|
|
- <Button Width="70" Height="30" Content="Добавить"/>
|
|
|
|
- <Button Margin="10,0,0,0" Height="30" Width="90" Content="Редактировать"/>
|
|
|
|
- <Button Margin="10,0,0,0" Height="30" Width="70" Content="Удалить"/>
|
|
|
|
|
|
+ <Button BorderBrush="White" BorderThickness="2" Foreground="Green" Background="LightGreen" Width="70" Height="30" Content="Добавить"/>
|
|
|
|
+ <Button BorderBrush="White" BorderThickness="2" Foreground="Green" Background="LightGreen" Margin="10,0,0,0" Height="30" Width="90" Content="Редактировать"/>
|
|
|
|
+ <Button BorderBrush="White" BorderThickness="2" Foreground="Green" Background="LightGreen" Margin="10,0,0,0" Height="30" Width="70" Content="Удалить"/>
|
|
|
|
+ <Button BorderBrush="White" BorderThickness="2" Foreground="Green" Background="LightGreen" Margin="10,0,0,0" Name="ViewOrder" Width="130" Height="30" Click="ViewOrders" Content="Посмотреть заказы"/>
|
|
|
|
+
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
</Grid>
|
|
</Grid>
|
|
</Page>
|
|
</Page>
|