|
@@ -0,0 +1,43 @@
|
|
|
+<Page x:Class="DontHarmDesktop.Pages.Services"
|
|
|
+ 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:DontHarmDesktop.Pages" xmlns:viewmodels="clr-namespace:DontHarmDesktop.ViewModels" d:DataContext="{d:DesignInstance Type=viewmodels:ServicesViewModel}"
|
|
|
+ mc:Ignorable="d"
|
|
|
+ d:DesignHeight="450" d:DesignWidth="800"
|
|
|
+ Title="Services">
|
|
|
+
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
+ <RowDefinition Height="32"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <DataGrid Grid.Row="0" ItemsSource="{Binding Services}" AutoGenerateColumns="False" IsReadOnly="True">
|
|
|
+ <DataGrid.Columns>
|
|
|
+ <DataGridTextColumn Header="Наименование" Binding="{Binding name}"/>
|
|
|
+ <DataGridTextColumn Header="Цена" Binding="{Binding price}"/>
|
|
|
+ <DataGridTextColumn Header="Код услуги" Binding="{Binding code}"/>
|
|
|
+ <DataGridTemplateColumn>
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Button Background="{StaticResource SecondaryColor}" Content="Редактировать"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+ </DataGrid.Columns>
|
|
|
+ </DataGrid>
|
|
|
+
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="256"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="256"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <Button Grid.Column="0" Background="{StaticResource SecondaryColor}" Command="{Binding AddServiceCmd}">Добавить</Button>
|
|
|
+ <Button Grid.Column="2" Background="{StaticResource SecondaryColor}">Удалить</Button>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+</Page>
|