Туда сюда пару пикселей, чисто дезигн
This commit is contained in:
parent
f063934489
commit
a3dda6e679
@ -21,6 +21,7 @@
|
|||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
Margin="0,60,0,0"
|
Margin="0,60,0,0"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
|
Style="{StaticResource RoundedTextBoxStyle}"
|
||||||
TextChanged="SearchTextBox_TextChanged" />
|
TextChanged="SearchTextBox_TextChanged" />
|
||||||
|
|
||||||
<!-- Таблица для отображения -->
|
<!-- Таблица для отображения -->
|
||||||
@ -38,6 +39,7 @@
|
|||||||
Margin="0,0,0,20"
|
Margin="0,0,0,20"
|
||||||
Background="#004890"
|
Background="#004890"
|
||||||
Foreground="#FFFFFF"
|
Foreground="#FFFFFF"
|
||||||
|
Style="{StaticResource RoundedButtonStyle}"
|
||||||
Click="DeleteButton_Click"/>
|
Click="DeleteButton_Click"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="Редактирование физического лица"
|
Title="Редактирование физического лица"
|
||||||
Height="600" Width="600"
|
Height="704" Width="600"
|
||||||
ResizeMode="NoResize"
|
ResizeMode="NoResize"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
Background="#0D2D4F">
|
Background="#0D2D4F">
|
||||||
|
|
||||||
<Grid>
|
<Grid Margin="0,0,0,-6">
|
||||||
<!-- Заголовок окна -->
|
<!-- Заголовок окна -->
|
||||||
<TextBlock Text="Редактирование физического лица"
|
<TextBlock Text="Редактирование физического лица"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Top"
|
HorizontalAlignment="Center" VerticalAlignment="Top"
|
||||||
@ -15,12 +15,52 @@
|
|||||||
Foreground="#FFFFFF"
|
Foreground="#FFFFFF"
|
||||||
Margin="0,20,0,0" />
|
Margin="0,20,0,0" />
|
||||||
|
|
||||||
<Grid Margin="0,60">
|
<!-- Основная сетка -->
|
||||||
|
<Grid Margin="0,70,0,60">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<!-- Поиск -->
|
||||||
|
<RowDefinition Height="2*" />
|
||||||
|
<!-- Редактирование -->
|
||||||
|
<RowDefinition Height="5*" />
|
||||||
|
<!-- Кнопка сохранения -->
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<!-- Блок поиска -->
|
||||||
|
<Grid Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="Auto"/>
|
</Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<!-- Поле для поиска физического лица -->
|
||||||
|
<Label Grid.Row="0" Grid.Column="0"
|
||||||
|
Content="Поиск физического лица" Foreground="White" HorizontalAlignment="Right" Margin="0,0,10,0" VerticalContentAlignment="Center"/>
|
||||||
|
<TextBox x:Name="SearchTextBox" Grid.Row="0" Grid.Column="1"
|
||||||
|
Width="250" Height="30"
|
||||||
|
Style="{StaticResource RoundedTextBoxStyle}"
|
||||||
|
Margin="0,5,0,5"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
ToolTip="Введите для поиска"
|
||||||
|
TextChanged="SearchTextBox_TextChanged"/>
|
||||||
|
|
||||||
|
<!-- Поле для выбора физического лица -->
|
||||||
|
<Label Grid.Row="1" Grid.Column="0"
|
||||||
|
Content="Выберите физическое лицо" Foreground="White" HorizontalAlignment="Right" Margin="0,0,10,0" VerticalContentAlignment="Center"/>
|
||||||
|
<ComboBox x:Name="PhysicalPersonComboBox" Grid.Row="1" Grid.Column="1"
|
||||||
|
Width="400" Height="30"
|
||||||
|
VerticalAlignment="Top"
|
||||||
|
ToolTip="Выберите физическое лицо"
|
||||||
|
SelectionChanged="PhysicalPersonComboBox_SelectionChanged" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<!-- Блок редактирования -->
|
||||||
|
<Grid Grid.Row="1" Margin="0,0,0,0">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
@ -32,106 +72,54 @@
|
|||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<!-- Поле для имени -->
|
<!-- Поля редактирования -->
|
||||||
<StackPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
<StackPanel Grid.Row="0" Grid.Column="0" Margin="10">
|
||||||
<Label Content="Имя" Foreground="White" HorizontalAlignment="Center"/>
|
<Label Content="Имя" Foreground="White" HorizontalAlignment="Center"/>
|
||||||
<TextBox x:Name="NameTextBox"
|
<TextBox x:Name="NameTextBox" Width="250" Height="40"
|
||||||
Width="250" Height="40"
|
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите имя" />
|
||||||
Style="{StaticResource RoundedTextBoxStyle}"
|
|
||||||
Margin="0,5"
|
|
||||||
ToolTip="Введите имя" HorizontalAlignment="Center"/>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<StackPanel Grid.Row="0" Grid.Column="1" Margin="10">
|
||||||
<!-- Поле для фамилии -->
|
|
||||||
<StackPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
||||||
<Label Content="Фамилия" Foreground="White" HorizontalAlignment="Center"/>
|
<Label Content="Фамилия" Foreground="White" HorizontalAlignment="Center"/>
|
||||||
<TextBox x:Name="SurnameTextBox"
|
<TextBox x:Name="SurnameTextBox" Width="250" Height="40"
|
||||||
Width="250" Height="40"
|
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите фамилию" />
|
||||||
Style="{StaticResource RoundedTextBoxStyle}"
|
|
||||||
Margin="0,5"
|
|
||||||
ToolTip="Введите фамилию" HorizontalAlignment="Center"/>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<StackPanel Grid.Row="1" Grid.Column="0" Margin="10" >
|
||||||
<!-- Поле для отчества -->
|
|
||||||
<StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
||||||
<Label Content="Отчество" Foreground="White" HorizontalAlignment="Center"/>
|
<Label Content="Отчество" Foreground="White" HorizontalAlignment="Center"/>
|
||||||
<TextBox x:Name="PatronomicTextBox"
|
<TextBox x:Name="PatronomicTextBox" Width="250" Height="40"
|
||||||
Width="250" Height="40"
|
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите отчество" />
|
||||||
Style="{StaticResource RoundedTextBoxStyle}"
|
|
||||||
Margin="0,5"
|
|
||||||
ToolTip="Введите отчество" HorizontalAlignment="Center"/>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<StackPanel Grid.Row="1" Grid.Column="1" Margin="10">
|
||||||
<!-- Поле для выбора даты рождения -->
|
|
||||||
<StackPanel Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
||||||
<Label Content="Дата рождения" Foreground="White" HorizontalAlignment="Center"/>
|
<Label Content="Дата рождения" Foreground="White" HorizontalAlignment="Center"/>
|
||||||
<DatePicker x:Name="BirthdayPicker"
|
<DatePicker x:Name="BirthdayPicker" Width="250" Height="40"
|
||||||
Width="250" Height="40"
|
ToolTip="Выберите дату рождения" />
|
||||||
Margin="0,5"
|
|
||||||
ToolTip="Выберите дату рождения" HorizontalAlignment="Center"/>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<StackPanel Grid.Row="2" Grid.Column="0" Margin="10">
|
||||||
<!-- Поле для выбора пола -->
|
|
||||||
<StackPanel Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
||||||
<Label Content="Пол" Foreground="White" HorizontalAlignment="Center"/>
|
<Label Content="Пол" Foreground="White" HorizontalAlignment="Center"/>
|
||||||
<ComboBox x:Name="GenderComboBox"
|
<ComboBox x:Name="GenderComboBox" Width="250" Height="40" ToolTip="Выберите пол">
|
||||||
Width="250" Height="40"
|
|
||||||
Margin="0,5"
|
|
||||||
ToolTip="Выберите пол"
|
|
||||||
Background="White" HorizontalAlignment="Center">
|
|
||||||
<ComboBoxItem Content="Мужчина" />
|
<ComboBoxItem Content="Мужчина" />
|
||||||
<ComboBoxItem Content="Женщина" />
|
<ComboBoxItem Content="Женщина" />
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<StackPanel Grid.Row="2" Grid.Column="1" Margin="10">
|
||||||
<!-- Поле для адреса -->
|
|
||||||
<StackPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
||||||
<Label Content="Адрес" Foreground="White" HorizontalAlignment="Center"/>
|
<Label Content="Адрес" Foreground="White" HorizontalAlignment="Center"/>
|
||||||
<TextBox x:Name="AddressTextBox"
|
<TextBox x:Name="AddressTextBox" Width="250" Height="40"
|
||||||
Width="250" Height="40"
|
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите адрес" />
|
||||||
Style="{StaticResource RoundedTextBoxStyle}"
|
|
||||||
Margin="0,5"
|
|
||||||
ToolTip="Введите адрес" HorizontalAlignment="Center"/>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<StackPanel Grid.Row="3" Grid.Column="0" Margin="10">
|
||||||
<!-- Поле для телефона -->
|
|
||||||
<StackPanel Grid.Row="3" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
||||||
<Label Content="Телефон" Foreground="White" HorizontalAlignment="Center"/>
|
<Label Content="Телефон" Foreground="White" HorizontalAlignment="Center"/>
|
||||||
<TextBox x:Name="TelephoneTextBox"
|
<TextBox x:Name="TelephoneTextBox" Width="250" Height="40"
|
||||||
Width="250" Height="40"
|
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите номер телефона" />
|
||||||
Style="{StaticResource RoundedTextBoxStyle}"
|
|
||||||
Margin="0,5"
|
|
||||||
ToolTip="Введите номер телефона" HorizontalAlignment="Center"/>
|
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
<!-- Поле для поиска физических лиц -->
|
|
||||||
<StackPanel Grid.Row="3" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
||||||
<Label Content="Поиск физического лица" Foreground="White" HorizontalAlignment="Center"/>
|
|
||||||
<TextBox x:Name="SearchTextBox"
|
|
||||||
Width="250" Height="40"
|
|
||||||
Margin="0,5"
|
|
||||||
ToolTip="Введите для поиска"
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
TextChanged="SearchTextBox_TextChanged"/>
|
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
<!-- Поле для выбора физического лица -->
|
|
||||||
<StackPanel Grid.Row="4" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
||||||
<Label Content="Выберите физическое лицо" Foreground="White" HorizontalAlignment="Center"/>
|
|
||||||
<ComboBox x:Name="PhysicalPersonComboBox"
|
|
||||||
Width="400" Height="40"
|
|
||||||
SelectionChanged="PhysicalPersonComboBox_SelectionChanged"
|
|
||||||
ToolTip="Выберите физическое лицо" HorizontalAlignment="Center"/>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<!-- Кнопка для сохранения изменений -->
|
<!-- Кнопка сохранения -->
|
||||||
<Button Content="Сохранить изменения"
|
<Button Grid.Row="2" Content="Сохранить изменения"
|
||||||
Width="250" Height="40"
|
Width="250" Height="40"
|
||||||
VerticalAlignment="Bottom"
|
VerticalAlignment="Bottom"
|
||||||
Style="{StaticResource RoundedButtonStyle}"
|
Style="{StaticResource RoundedButtonStyle}"
|
||||||
Background="#004890" Foreground="#FFFFFF"
|
Background="#004890" Foreground="#FFFFFF"
|
||||||
Click="SaveButton_Click"
|
Click="SaveButton_Click"
|
||||||
HorizontalAlignment="Center" Margin="0,10,0,10"/>
|
HorizontalAlignment="Center" Margin="0,10,0,0"/>
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
@ -19,9 +19,10 @@
|
|||||||
<TextBox x:Name="SearchTextBox"
|
<TextBox x:Name="SearchTextBox"
|
||||||
Width="560"
|
Width="560"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
Margin="0,60,0,0"
|
Margin="0,49,0,0"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
TextChanged="SearchTextBox_TextChanged" Height="20" />
|
Style="{StaticResource RoundedTextBoxStyle}"
|
||||||
|
TextChanged="SearchTextBox_TextChanged" Height="35" />
|
||||||
|
|
||||||
|
|
||||||
<!-- Таблица для отображения -->
|
<!-- Таблица для отображения -->
|
||||||
|
Loading…
Reference in New Issue
Block a user