|
@@ -8,41 +8,34 @@
|
|
|
d:DesignHeight="450" d:DesignWidth="800"
|
|
|
Title="Services">
|
|
|
|
|
|
- <Grid>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="32"/>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
+ <StackPanel Style="{StaticResource FormContainer}">
|
|
|
+ <TextBlock Text="Просмотр услуг" Style="{StaticResource H2}"/>
|
|
|
+ <Grid Style="{StaticResource FormBody}">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
|
- <Grid Grid.Row="0">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="128"/>
|
|
|
- <ColumnDefinition Width="128"/>
|
|
|
- <ColumnDefinition Width="128"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
+ <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,4" Style="{StaticResource ButtonPanel}">
|
|
|
|
|
|
- <Button
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource Suggested}"
|
|
|
- Command="{Binding AddServiceCmd}"
|
|
|
- Margin="4">Добавить</Button>
|
|
|
- <Button
|
|
|
- Grid.Column="1"
|
|
|
- Margin="4">Редактировать</Button>
|
|
|
- <Button
|
|
|
- Grid.Column="2"
|
|
|
- Style="{StaticResource Destructive}"
|
|
|
- Margin="4">Удалить</Button>
|
|
|
- </Grid>
|
|
|
-
|
|
|
- <DataGrid Grid.Row="1" ItemsSource="{Binding Services}" AutoGenerateColumns="False" IsReadOnly="True">
|
|
|
- <DataGrid.Columns>
|
|
|
- <DataGridTextColumn Header="Наименование" Binding="{Binding name}"/>
|
|
|
- <DataGridTextColumn Header="Цена" Binding="{Binding price}"/>
|
|
|
- <DataGridTextColumn Header="Код услуги" Binding="{Binding code}"/>
|
|
|
- </DataGrid.Columns>
|
|
|
- </DataGrid>
|
|
|
+ <Button
|
|
|
+ Style="{StaticResource Suggested}"
|
|
|
+ Command="{Binding AddServiceCmd}">Добавить</Button>
|
|
|
+ <Button
|
|
|
+ Style="{StaticResource TextButton}"
|
|
|
+ Command="{Binding EditServiceCmd}">Редактировать</Button>
|
|
|
+ <Button
|
|
|
+ Style="{StaticResource Destructive}"
|
|
|
+ Command="{Binding AddServiceCmd}">Удалить</Button>
|
|
|
+ </StackPanel>
|
|
|
|
|
|
-
|
|
|
- </Grid>
|
|
|
+ <DataGrid Grid.Row="1" ItemsSource="{Binding Services}" AutoGenerateColumns="False" IsReadOnly="True">
|
|
|
+ <DataGrid.Columns>
|
|
|
+ <DataGridTextColumn Header="Наименование" Binding="{Binding name}"/>
|
|
|
+ <DataGridTextColumn Header="Цена" Binding="{Binding price}"/>
|
|
|
+ <DataGridTextColumn Header="Код услуги" Binding="{Binding code}"/>
|
|
|
+ </DataGrid.Columns>
|
|
|
+ </DataGrid>
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
</Page>
|