|
@@ -16,64 +16,67 @@
|
|
|
<TextBlock HorizontalAlignment="Center"
|
|
|
Style="{StaticResource H2}"
|
|
|
Text="Список водителей"/>
|
|
|
-
|
|
|
+
|
|
|
<Grid>
|
|
|
<StackPanel>
|
|
|
- <ListView ItemsSource="{Binding lvOutPutCitizen}"
|
|
|
- ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
|
- Height="400">
|
|
|
- <ListView.ItemsPanel>
|
|
|
- <ItemsPanelTemplate>
|
|
|
- <WrapPanel Orientation="Horizontal"/>
|
|
|
- </ItemsPanelTemplate>
|
|
|
- </ListView.ItemsPanel>
|
|
|
- <ListView.ItemTemplate>
|
|
|
- <DataTemplate>
|
|
|
- <Grid >
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <StackPanel Width="160">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="{Binding GetHumanName}"
|
|
|
- Style="{StaticResource H4}"/>
|
|
|
- </StackPanel>
|
|
|
- <TextBlock Text="{Binding Path=GetHumanPass}"/>
|
|
|
- <TextBlock Text="{Binding Path=Job1.Name}"/>
|
|
|
- <TextBlock Text="{Binding Path=Job1.Company1.Name}"/>
|
|
|
- <Image
|
|
|
- Width="140"
|
|
|
- Height="140">
|
|
|
- <Image.Source>
|
|
|
- <Binding Path="GetFace">
|
|
|
- <Binding.TargetNullValue>
|
|
|
- <ImageSource>/Assets/BlackAvatar.png</ImageSource>
|
|
|
- </Binding.TargetNullValue>
|
|
|
- </Binding>
|
|
|
- </Image.Source>
|
|
|
- </Image>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- </DataTemplate>
|
|
|
- </ListView.ItemTemplate>
|
|
|
- </ListView>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <Button Content="Добавить"
|
|
|
- Style="{StaticResource StandartButton}"
|
|
|
- Command="{Binding Source={x:Static root:Navigation.ToDriverCreate}}"/>
|
|
|
- <Button Content="Редактировать"
|
|
|
- Style="{StaticResource StandartButton}"
|
|
|
- Command="{Binding Source={x:Static root:Navigation.ToDriverCreate}}"/>
|
|
|
- <Button Content="Удалить"
|
|
|
- Style="{StaticResource StandartButton}"
|
|
|
- Command="{Binding Source={x:Static root:Navigation.ToDriverCreate}}"/>
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Button Content="Добавить"
|
|
|
+ Style="{StaticResource StandartButton}"
|
|
|
+ Command="{Binding AddCmd}"/>
|
|
|
+ <Button Content="Редактировать"
|
|
|
+ Style="{StaticResource StandartButton}"
|
|
|
+ Command="{Binding EditCmd}"/>
|
|
|
+ <Button Content="Удалить"
|
|
|
+ Style="{StaticResource StandartButton}"
|
|
|
+ Command="{Binding DeleteCmd}"/>
|
|
|
+ <Button Content="Назад"
|
|
|
+ Style="{StaticResource StandartButton}"
|
|
|
+ Command="{Binding BackCmd}"/>
|
|
|
</StackPanel>
|
|
|
+
|
|
|
+ <ListView ItemsSource="{Binding lvOutPutCitizen}"
|
|
|
+ ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
|
+ Height="400">
|
|
|
+ <ListView.ItemsPanel>
|
|
|
+ <ItemsPanelTemplate>
|
|
|
+ <WrapPanel Orientation="Horizontal"/>
|
|
|
+ </ItemsPanelTemplate>
|
|
|
+ </ListView.ItemsPanel>
|
|
|
+ <ListView.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <StackPanel Width="160">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Text="{Binding GetHumanName}"
|
|
|
+ Style="{StaticResource H4}"/>
|
|
|
+ </StackPanel>
|
|
|
+ <TextBlock Text="{Binding Path=GetHumanPass}"/>
|
|
|
+ <TextBlock Text="{Binding Path=Job1.Name}"/>
|
|
|
+ <TextBlock Text="{Binding Path=Job1.Company1.Name}"/>
|
|
|
+ <Image
|
|
|
+ Width="140"
|
|
|
+ Height="140">
|
|
|
+ <Image.Source>
|
|
|
+ <Binding Path="GetFace">
|
|
|
+ <Binding.TargetNullValue>
|
|
|
+ <ImageSource>/Assets/BlackAvatar.png</ImageSource>
|
|
|
+ </Binding.TargetNullValue>
|
|
|
+ </Binding>
|
|
|
+ </Image.Source>
|
|
|
+ </Image>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ </DataTemplate>
|
|
|
+ </ListView.ItemTemplate>
|
|
|
+ </ListView>
|
|
|
</StackPanel>
|
|
|
-
|
|
|
</Grid>
|
|
|
-
|
|
|
</StackPanel>
|
|
|
</ScrollViewer>
|
|
|
</Page>
|