12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <Page x:Class="PleasantRustle.Pages.Main"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PleasantRustle.Pages"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="Main">
- <Page.Resources>
- <DataTemplate x:Key="PleasantRustleInfo">
- <Border BorderBrush="#FF46B29D" BorderThickness="1" CornerRadius="1">
- <StackPanel Orientation="Horizontal" MinWidth="800" MinHeight="100" Margin="0,10">
- <Image Source="{Binding Logo}" Width="80" Height="80"/>
- <StackPanel Orientation="Vertical" Margin="20,0,0,0" VerticalAlignment="Center">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <TextBlock Text="{Binding AgentType.Title}" FontFamily="Monotype Corsiva" FontSize="18"/>
- <TextBlock Text=" | " FontFamily="Monotype Corsiva" FontSize="18"/>
- <TextBlock Text="{Binding Title}" FontFamily="Monotype Corsiva" FontSize="18"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="10" FontFamily="Monotype Corsiva" FontSize="18"/>
- <TextBlock Text=" продаж за год" FontFamily="Monotype Corsiva" FontSize="18"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="+7 " FontFamily="Monotype Corsiva" FontSize="18"/>
- <TextBlock Text="{Binding Phone}" FontFamily="Monotype Corsiva" FontSize="18"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Приоритетность: " FontFamily="Monotype Corsiva" FontSize="18"/>
- <TextBlock Text="{Binding Priority}" FontFamily="Monotype Corsiva" FontSize="15"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <Button x:Name="buttonUpdate" Click="buttonUpdate_Click" Content="Редактировать агента" Background="White" BorderBrush="#FF46B29D" FontFamily="Monotype Corsiva" FontSize="18" Width="600" Height="20"/>
- </StackPanel>
- </StackPanel>
- <StackPanel Width="50" Height="50" HorizontalAlignment="Right" VerticalAlignment="Top">
- <TextBlock Text="10%" FontFamily="Monotype Corsiva" FontSize="25" Margin="10,0,0,0"/>
- </StackPanel>
- </StackPanel>
- </Border>
- </DataTemplate>
- </Page.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="15*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal" Margin="0,10">
- <TextBox x:Name="Search" Width="390" Height="20" Margin="5,0" TextChanged="Search_TextChanged"/>
- <ComboBox Width="190" Height="20" Margin="5,0" SelectionChanged="ComboBox_SelectionChanged">
- <ComboBoxItem Content="Наименование (по возрастанию)" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="Наименование (по убыванию)" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="Размер скидки (по возрастанию)" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="Размер скидки (по убыванию)" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="Приоритет (по возрастанию)" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="Приоритет (по убыванию)" FontFamily="Monotype Corsiva" FontSize="18"/>
- </ComboBox>
- <ComboBox Width="190" Height="20" Margin="5,0" SelectionChanged="ComboBox_SelectionChanged_1">
- <ComboBoxItem Content="Все типы" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="ЗАО" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="МКК" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="МФО" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="ОАО" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="ООО" FontFamily="Monotype Corsiva" FontSize="18"/>
- <ComboBoxItem Content="ПАО" FontFamily="Monotype Corsiva" FontSize="18"/>
- </ComboBox>
- </StackPanel>
- <ListBox x:Name="listboxPleasant" Grid.Row="1" ItemTemplate="{StaticResource PleasantRustleInfo}"/>
- <StackPanel Grid.Row="2">
- <Button x:Name="buttonAdd" Click="buttonAdd_Click" Content="Добавить агента" Margin="50,10,50,0" Background="#FF46B29D" BorderBrush="{x:Null}" Foreground="White" FontFamily="Monotype Corsiva" FontSize="18"/>
- </StackPanel>
- </Grid>
- </Page>
|