<Window x:Class="Demoexample.NewAgent"
        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:Demoexample"
        mc:Ignorable="d"
        Icon="img/Приятный шелест.ico"
        Title="Приятный шелест" Height="700" Width="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="61"/>
            <ColumnDefinition Width="731*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="61"/>
            <RowDefinition Height="365*"/>
        </Grid.RowDefinitions>
        <Image Source="img/Приятный шелест.png" Width="60" Height="60" Grid.Column="0" Grid.Row="0"></Image>
        <TextBlock Text="Приятный шелест" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30" ></TextBlock>
        <StackPanel Grid.Row ="1" Grid.ColumnSpan="2">
            <GroupBox Header="Наименование">
                <TextBox x:Name="name"></TextBox>
            </GroupBox>
            <GroupBox Header="Тип агента">
                <ComboBox x:Name="Type"></ComboBox>
            </GroupBox>
            <GroupBox Header="Приоритет">
                <TextBox x:Name="prioritey"></TextBox>
            </GroupBox>
            <GroupBox Header="Логотип">
                <StackPanel Orientation="Vertical">
                    <Image x:Name = "imgnew" Width="100" Height="100"></Image>
                    <Button x:Name="newImg" Content="Добавить фото" Click="newImg_Click" Width="150"></Button>
                </StackPanel>
            </GroupBox>
            <GroupBox Header="Адрес">
                <TextBox x:Name="address"></TextBox>
            </GroupBox>
            <GroupBox Header="ИНН">
                <TextBox x:Name="inn"></TextBox>
            </GroupBox>
            <GroupBox Header="КПП">
                <TextBox x:Name="kpp"></TextBox>
            </GroupBox>
            <GroupBox Header="Имя деректора">
                <TextBox x:Name="director"></TextBox>
            </GroupBox>
            <GroupBox Header="Телефон">
                <TextBox x:Name="telephone"></TextBox>
            </GroupBox>
            <GroupBox Header="Email">
                <TextBox x:Name="email"></TextBox>
            </GroupBox>
            <Button x:Name="add" Content="Добавить нового агента" Click="add_Click"></Button>
        </StackPanel>
    </Grid>
</Window>
