123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <Window x:Class="WpfApp1.MainWindow"
- 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:WpfApp1"
- mc:Ignorable="d"
- Title="Приятный шелест" MinHeight="550" Height="550" MaxHeight="550" MinWidth="900" Width="900" MaxWidth="900">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="150"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Image
- Margin="5"
- Source="/image/Приятный шелест.png"
- VerticalAlignment="Top"/>
- <TextBlock
- Text="Приятный шелест"
- Margin="0,0,0,190"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="20"/>
- <StackPanel
- Orientation="Vertical"
- VerticalAlignment="Bottom"
- Margin="5">
- <Button
- x:Name="AddAgent"
- Content="Добавить агент"
- Margin="0,0,0,5"
- Background="#46B29D"
- Click="AddAgent_Click">
- </Button>
-
- <Button
- x:Name="Exit"
- Content="Выход"
- Background="#46B29D"
- Click="Exit_Click"/>
- </StackPanel>
- <Grid
- Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="30"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="30"/>
- </Grid.RowDefinitions>
- <WrapPanel Grid.Row="0">
- <Label
- Content="Введите для поиска:"
- VerticalAlignment="Center"/>
- <TextBox x:Name="Poisk"
- VerticalAlignment="Center"
- Width="150"
- SelectionChanged="Poisk_SelectionChanged"/>
- <Label Content="Сортировка:"
- VerticalAlignment="Center"/>
- <ComboBox Name="Sort"
- VerticalAlignment="Center"
- Width="100"
- SelectionChanged="Sort_SelectionChanged"
- ItemsSource="{Binding SotrList}"/>
- <Label Content="Фильтрация:"
- VerticalAlignment="Center"/>
- <ComboBox Name="Filtr"
- VerticalAlignment="Center"
- Width="100"
- ItemsSource="{Binding Filtr}"/>
- </WrapPanel>
- <ListView Grid.Row="1"
- x:Name="MainListView"
- SelectionChanged="MainListView_SelectionChanged"
- MouseDoubleClick="MainListView_MouseDoubleClick"
- ItemsSource="{Binding AgentList}">
- <ListView.ItemContainerStyle>
- <Style TargetType="ListViewItem">
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- </Style>
- </ListView.ItemContainerStyle>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border BorderBrush="Black"
- BorderThickness="1"
- Background="{Binding BackgroundColor}"
- >
-
- <Grid Margin="10" HorizontalAlignment="Stretch">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="64"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="auto"/>
- </Grid.ColumnDefinitions>
- <Image Width="64" Height="64" Source="{Binding ImagePres}"/>
- <StackPanel
- Grid.Column="1"
- Margin="5"
- Orientation="Vertical">
- <TextBlock
- Text="{Binding TypAndNameAgent}" />
- <TextBlock Text="{Binding ProdazhZaGod}"/>
- <TextBlock Text="{Binding Phone}"/>
- <TextBlock Text="{Binding Prioritys}"/>
- </StackPanel>
- <StackPanel
- Grid.Column="2"
- Margin="10"
- HorizontalAlignment="Right"
- Orientation="Vertical">
- <TextBlock Text="{Binding Prozents}"/>
- </StackPanel>
-
-
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
-
- </Grid>
-
- </Grid>
- </Window>
|