<Window x:Class="Session1.EditAgent"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Session1"
        mc:Ignorable="d"
        Title="EditAgent" Height="480" Width="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="191*"/>
            <ColumnDefinition Width="227*"/>
            <ColumnDefinition Width="252*"/>
        </Grid.ColumnDefinitions>
        <GroupBox Header="Изображение">
            <StackPanel Grid.Column="0" VerticalAlignment="Center">
                <Image x:Name="agentImg" Height="150" Width="150"></Image>
                <TextBox x:Name="imgPath" Width="150"></TextBox>
                <Button x:Name="addImage" Width="150" Click="addImage_Click">Добавить изображение</Button>
            </StackPanel>
        </GroupBox>
        <GroupBox Header="Основные данные" Grid.Column="1">
            <StackPanel VerticalAlignment="Center">
                <GroupBox Header="Наименование">
                    <TextBox x:Name="agentName" Width="150"></TextBox>
                </GroupBox>
                <GroupBox Header="Тип агента">
                    <ComboBox x:Name="agentType" Width="150"></ComboBox>
                </GroupBox>
                <GroupBox Header="Приоритет">
                    <TextBox x:Name="agentPriority" Width="150"></TextBox>
                </GroupBox>
                <GroupBox Header="Адрес">
                    <TextBox x:Name="agentAddress" Width="150"></TextBox>
                </GroupBox>
                <GroupBox Header="ИНН">
                    <TextBox x:Name="agentINN" Width="150"></TextBox>
                </GroupBox>
                <GroupBox Header="КПП">
                    <TextBox x:Name="agentKPP" Width="150"></TextBox>
                </GroupBox>
                <GroupBox Header="Директор">
                    <TextBox x:Name="agentDirector" Width="150"></TextBox>
                </GroupBox>
                <GroupBox Header="Телефон">
                    <TextBox x:Name="agentPhone" Width="150"></TextBox>
                </GroupBox>
                <GroupBox Header="Почта">
                    <TextBox x:Name="agentEmail" Width="150"></TextBox>
                </GroupBox>
                <Button x:Name="save" Click="save_Click">Сохранить</Button>
                <Button x:Name="cancel" Click="cancel_Click">Отмена</Button>
            </StackPanel>
        </GroupBox>
        <GroupBox Header="История реализации" Grid.Column="2">
            <ListView x:Name="historyBox"></ListView>
        </GroupBox>
    </Grid>
</Window>
