|
@@ -0,0 +1,79 @@
|
|
|
+<Page x:Class="p.PageService"
|
|
|
+ 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:p"
|
|
|
+ mc:Ignorable="d"
|
|
|
+ d:DesignHeight="450" d:DesignWidth="800"
|
|
|
+ Title="PageService">
|
|
|
+ <Page.Resources>
|
|
|
+ <DataTemplate x:Key="ServiceItems">
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1">
|
|
|
+ <StackPanel Orientation="Horizontal" Background="{Binding green}">
|
|
|
+ <GroupBox>
|
|
|
+ <StackPanel Orientation="Horizontal" Width="600px">
|
|
|
+ <Image x:Name="Image" Source="{Binding Logo}" Height="75px" Width="75px"/>
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
+ <TextBlock x:Name="Title" Text="{Binding Title}"/>
|
|
|
+
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Button x:Name="EditService" Content="Редактировать" Uid="{Binding Id_Agent}" Click="EditService_Click" Visibility="{Binding visiblebtn}" Margin="0 0 10 0"/>
|
|
|
+ <Button x:Name="DeleteServise" Content="Удалить" Uid="{Binding Id_Agent}" Click="DeleteServise_Click" Visibility="{Binding visiblebtn}" Margin="0 0 10 0"/>
|
|
|
+ <Button x:Name="NewZapis" Content="Записать" Uid="{Binding Id_Agent}" Click="NewZapis_Click"/>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </GroupBox>
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ </DataTemplate>
|
|
|
+ </Page.Resources>
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="70"/>
|
|
|
+ <RowDefinition Height="9*"/>
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
+
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="7*"/>
|
|
|
+ <ColumnDefinition x:Name="ColumDefMain" Width="0"/>
|
|
|
+
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal">
|
|
|
+ <StackPanel Margin="0,0,0,0.4"/>
|
|
|
+ <GroupBox Header="" Margin="0,0,0,0.4">
|
|
|
+ <StackPanel Orientation="Horizontal"/>
|
|
|
+ </GroupBox>
|
|
|
+
|
|
|
+
|
|
|
+ <GroupBox Header="Введите агента" Width="201" Margin="0,0,0,0.4">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBox x:Name="SearchBarTxt" Width="176" Height="25" Margin="5,12,0,12" TextChanged="SearchBarTxt_TextChanged" FontSize="14"/>
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+ </GroupBox>
|
|
|
+
|
|
|
+ <GroupBox Header="" Margin="0,0,0,0.4">
|
|
|
+ <StackPanel Orientation="Horizontal"/>
|
|
|
+ </GroupBox>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <GroupBox Header="Сортировка" Margin="0,0,0,0.4" Width="334">
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="0,0,-2,0">
|
|
|
+ <Button x:Name="CostSortButtum" Content="Цена" Click="CostSortButtum_Click" Width="130" Height="25" Margin="0,12,0,11"/>
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+ </GroupBox>
|
|
|
+
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+ <ListBox x:Name="ServiceList" ItemTemplate="{StaticResource ServiceItems}" Grid.Column="0" Grid.Row="1"/>
|
|
|
+ <TextBlock x:Name="kol_voZap" Grid.Column="0" Grid.Row="3"/>
|
|
|
+ </Grid>
|
|
|
+</Page>
|