|
@@ -8,14 +8,14 @@
|
|
Title="Добавление агента" Height="470" Width="800">
|
|
Title="Добавление агента" Height="470" Width="800">
|
|
<Grid>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
- <ColumnDefinition Width="191*"/>
|
|
|
|
- <ColumnDefinition Width="227*"/>
|
|
|
|
- <ColumnDefinition Width="252*"/>
|
|
|
|
|
|
+ <ColumnDefinition Width="97*"/>
|
|
|
|
+ <ColumnDefinition Width="101*"/>
|
|
|
|
+ <ColumnDefinition Width="0*"/>
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
<GroupBox Header="Изображение">
|
|
<GroupBox Header="Изображение">
|
|
<StackPanel Grid.Column="0" VerticalAlignment="Center">
|
|
<StackPanel Grid.Column="0" VerticalAlignment="Center">
|
|
<Image x:Name="agentImg" Height="150" Width="150"></Image>
|
|
<Image x:Name="agentImg" Height="150" Width="150"></Image>
|
|
- <TextBox x:Name="imgPath" Width="150"></TextBox>
|
|
|
|
|
|
+ <TextBox x:Name="imgPath" Width="150" TextChanged="imgPath_TextChanged"></TextBox>
|
|
<Button x:Name="addImage" Width="150" Click="addImage_Click">Добавить изображение</Button>
|
|
<Button x:Name="addImage" Width="150" Click="addImage_Click">Добавить изображение</Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
</GroupBox>
|
|
@@ -28,16 +28,16 @@
|
|
<ComboBox x:Name="agentType" Width="150"></ComboBox>
|
|
<ComboBox x:Name="agentType" Width="150"></ComboBox>
|
|
</GroupBox>
|
|
</GroupBox>
|
|
<GroupBox Header="Приоритет">
|
|
<GroupBox Header="Приоритет">
|
|
- <TextBox x:Name="agentPriority" Width="150"></TextBox>
|
|
|
|
|
|
+ <TextBox x:Name="agentPriority" Width="150" PreviewTextInput="PreviewTextInput"></TextBox>
|
|
</GroupBox>
|
|
</GroupBox>
|
|
<GroupBox Header="Адрес">
|
|
<GroupBox Header="Адрес">
|
|
<TextBox x:Name="agentAddress" Width="150"></TextBox>
|
|
<TextBox x:Name="agentAddress" Width="150"></TextBox>
|
|
</GroupBox>
|
|
</GroupBox>
|
|
<GroupBox Header="ИНН">
|
|
<GroupBox Header="ИНН">
|
|
- <TextBox x:Name="agentINN" Width="150"></TextBox>
|
|
|
|
|
|
+ <TextBox x:Name="agentINN" Width="150" PreviewTextInput="PreviewTextInput"></TextBox>
|
|
</GroupBox>
|
|
</GroupBox>
|
|
<GroupBox Header="КПП">
|
|
<GroupBox Header="КПП">
|
|
- <TextBox x:Name="agentKPP" Width="150"></TextBox>
|
|
|
|
|
|
+ <TextBox x:Name="agentKPP" Width="150" PreviewTextInput="PreviewTextInput"></TextBox>
|
|
</GroupBox>
|
|
</GroupBox>
|
|
<GroupBox Header="Директор">
|
|
<GroupBox Header="Директор">
|
|
<TextBox x:Name="agentDirector" Width="150"></TextBox>
|
|
<TextBox x:Name="agentDirector" Width="150"></TextBox>
|
|
@@ -52,8 +52,5 @@
|
|
<Button x:Name="cancel" Click="cancel_Click">Отмена</Button>
|
|
<Button x:Name="cancel" Click="cancel_Click">Отмена</Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
</GroupBox>
|
|
- <GroupBox Header="История реализации" Grid.Column="2">
|
|
|
|
- <ListView x:Name="historyBox"></ListView>
|
|
|
|
- </GroupBox>
|
|
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|
|
</Window>
|