<Window x:Class="mateo.SysAdmin"
        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:mateo"
        mc:Ignorable="d"
        Title="Mateo" Height="540" Width="960" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None">
    <Grid Background="White">
        <!--#region-->
        <Grid  Margin="0,0,824,0" Background="#30DB92">
        </Grid>
        <Grid Background="#30DB92" Margin="0,0,0,470">
            <Image Source="image/logosys.png" Margin="0,0,825,-17"/>
            <TextBlock Name="txtFio_Admin" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" Margin="140,0,50,0"/>
            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="btnLogout" Margin="860,14,60,16">
                <Image Source="image\logout.png" Height="40" Width="40"/>
            </Button>
            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="BtnExit" Margin="910,14,10,16">
                <Image Source="image\exit.png" Height="40" Width="40"/>
            </Button>
        </Grid>
        <!--#endregion-->

        <TabControl BorderThickness="0" TabStripPlacement="Left" Margin="0,80,0,0">

            <TabItem Header="Аттракционы" FontSize="16" Background="Transparent" Width="134" Height="48">
                <Grid>
                    <DataGrid Name="datagridAttraction" AutoGenerateColumns="False" IsReadOnly="True" ColumnWidth="*" FontSize="12" Margin="0,0,0,60">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Наименование" Binding="{Binding NameAttraction}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style>
                                        <Setter Property="TextBlock.TextWrapping" Value="Wrap"/>
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>
                            <DataGridTextColumn Header="Описание" Binding="{Binding Description}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style>
                                        <Setter Property="TextBlock.TextWrapping" Value="Wrap"/>
                                        <Setter Property="TextBlock.MaxHeight" Value="20"/>
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>
                            <DataGridTextColumn Header="Количество мест" Binding="{Binding QuantityAttraction}"/>
                            <DataGridTextColumn Header="Цена (Взрослый)" Binding="{Binding PriceOld, StringFormat=0.00}"/>
                            <DataGridTextColumn Header="Цена (Детский)" Binding="{Binding PriceBaby, StringFormat=0.00}"/>
                            <DataGridTextColumn Header="Тип билета" Binding="{Binding Type.Type1}"/>
                            <DataGridTemplateColumn Header="Изображение">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Image Height="30" Source="{Binding ImageAttraction}"/>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                            <DataGridTextColumn Header="Статус" Binding="{Binding StatusAttraction.StatusAttraction1}"/>
                            <DataGridTemplateColumn Header="Изменить">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Button Content="Изменить" Click="BtnChangeAttractionClick"/>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                        </DataGrid.Columns>
                    </DataGrid>

                    <Button Content="Добавить аттракцион" FontSize="16" Background="Transparent" Click="BtnAddNewAttractionClick" Margin="638,404,10,10" />

                    <Grid x:Name="gridAddAttraction" Visibility="Hidden" Background="White">
                        <StackPanel Margin="20,82,448,73">
                            <StackPanel  Orientation="Horizontal" Height="43">
                                <TextBlock Text="Наименование:" Width="140"/>
                                <TextBox x:Name="txtName_Attraction" MaxLength="50" TextWrapping="Wrap" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="85">
                                <TextBlock Text="Описание:" Width="140"/>
                                <TextBox x:Name="txtDescription_Attraction" MaxLength="200" TextWrapping="Wrap" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Количество мест:" Width="140"/>
                                <TextBox x:Name="txtQuantity_Attraction" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Цена old:" Width="140"/>
                                <TextBox x:Name="txtPriceOld_Attraction" Width="200"/>
                            </StackPanel> 
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Цена:" Width="140"/>
                                <TextBox x:Name="txtPriceBaby_Attraction" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Статус:" Width="140"/>
                                <ComboBox Name="comboboxStatus_Attraction" DisplayMemberPath="StatusAttraction1" Background="Transparent" Width="200"/>

                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Тип билета:" Width="140"/>
                                <ComboBox Name="comboboxType_Attraction" DisplayMemberPath="Type1" Background="Transparent" Width="200"/>

                            </StackPanel>
                        </StackPanel>
                        <Image x:Name="imageAdd_Attraction" Margin="402,82,151,187"/>
                        <Button Content="Добавить изображение" Background="Transparent" Click="BtnAddImage" Margin="451,293,151,125"/>
                        <Button Content="Добавить" FontSize="16" Background="Transparent" Click="BtnAddAttractionClick" Margin="463,405,185,9" />
                        <Button Content="Отмена" FontSize="16" Background="Transparent" Click="BtnBackAttractionClick" Margin="663,405,41,9" />
                    </Grid>

                    <Grid x:Name="gridChangeAttraction" Visibility="Hidden" Background="White">
                        <StackPanel Margin="20,82,492,73">
                            <StackPanel  Orientation="Horizontal" Height="43">
                                <TextBlock Text="Наименование:" Width="100"/>
                                <TextBox x:Name="txtChange_NameAttraction" MaxLength="50" TextWrapping="Wrap" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="85">
                                <TextBlock Text="Описание:" Width="100"/>
                                <TextBox x:Name="txtChange_Description" MaxLength="200" TextWrapping="Wrap" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Количество мест:" Width="100"/>
                                <TextBox x:Name="txtChange_Quantity" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Цена old:" Width="100"/>
                                <TextBox x:Name="txtChange_PriceOldAttraction" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Цена:" Width="100"/>
                                <TextBox x:Name="txtChange_PriceBabyAttraction" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Статус:" Width="100"/>
                                <ComboBox Name="comboboxChange_StatusAttraction" DisplayMemberPath="StatusAttraction1" Background="Transparent" Width="200"/>

                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Тип билета:" Width="100"/>
                                <ComboBox Name="comboboxChange_TypeAttraction" DisplayMemberPath="Type1" Background="Transparent" Width="200"/>

                            </StackPanel>
                        </StackPanel>
                        <Image x:Name="imageChange_Attraction" Margin="402,82,151,187"/>
                        <Button Content="Изменить изображение" Background="Transparent" Click="BtnChangeImageClick" Margin="451,293,151,125"/>
                        <Button Content="Сохранить изменения" FontSize="16" Background="Transparent" Click="BtnSaveChangeClick" Margin="423,405,203,9" />
                        <Button Content="Отмена" FontSize="16" Background="Transparent" Click="BtnBackAttractionClick" Margin="663,405,41,9" />
                    </Grid>
                </Grid>
            </TabItem>


            <TabItem Header="Сотрудники" x:Name="tabEmployees" FontSize="16" Background="Transparent" Width="134" Height="48">
                <Grid>
                    <DataGrid Name="datagridEmployees" AutoGenerateColumns="False" IsReadOnly="True" ColumnWidth="*" FontSize="12" Margin="0,0,0,60">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Фамилия" Binding="{Binding LastName}"/>
                            <DataGridTextColumn Header="Имя" Binding="{Binding FirstName}"/>
                            <DataGridTextColumn Header="Отчество" Binding="{Binding MiddleName}"/>
                            <DataGridTextColumn Header="Роль" Binding="{Binding Role.Role1}"/>
                            <DataGridTextColumn Header="Статус" Binding="{Binding StatusEmployees.StatusEmployees1}"/>
                            <DataGridTemplateColumn Header="Изменить">
                                <DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <Button Content="Изменить" Click="BtnChangeEmployeesClick"/>
                                    </DataTemplate>
                                </DataGridTemplateColumn.CellTemplate>
                            </DataGridTemplateColumn>
                        </DataGrid.Columns>
                    </DataGrid>

                    <Button Content="Добавить сотрудника" FontSize="16" Background="Transparent" Click="BtnAddNewEmployeesClick" Margin="638,404,10,10" />

                    <Grid x:Name="gridAddEmployees" Visibility="Hidden" Background="White">
                        <StackPanel Margin="20,82,450,166">
                            <StackPanel  Orientation="Horizontal" Height="43">
                                <TextBlock Text="Фамилия:" Width="140"/>
                                <TextBox x:Name="txtLastName_Employyes" TextWrapping="Wrap" Width="200"/>
                            </StackPanel>
                            <StackPanel  Orientation="Horizontal" Height="43">
                                <TextBlock Text="Имя:" Width="140"/>
                                <TextBox x:Name="txtFirstName_Employyes" TextWrapping="Wrap" Width="200"/>
                            </StackPanel>
                            <StackPanel  Orientation="Horizontal" Height="43">
                                <TextBlock Text="Отчество:" Width="140"/>
                                <TextBox x:Name="txtMiddleName_Employees" TextWrapping="Wrap" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Роль:" Width="140"/>
                                <ComboBox Name="comboboxRole_Employees" Background="Transparent" Width="200">
                                    <TextBlock Text="Системный администратор"/>
                                    <TextBlock Text="Администратор"/>
                                </ComboBox>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Статус:" Width="140"/>
                                <ComboBox Name="comboboxStatus_Employees" Background="Transparent" Width="200">
                                    <TextBlock Text="Работает"/>
                                    <TextBlock Text="Уволен"/>
                                </ComboBox>
                            </StackPanel>
                        </StackPanel>
                        <!--<StackPanel Margin="440,82,62,267">
                            --><!--<StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Логин" Width="140"/>
                                <TextBox x:Name="txtLogin" MaxLength="8" Width="140"/>
                            </StackPanel>--><!--
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Пароль" Width="140"/>
                                <Grid Width="110">
                                    <TextBox x:Name="txtPassword" Visibility="Hidden"  TextChanged="txtPassword_TextChanged"/>
                                    <PasswordBox x:Name="passPassword" MaxLength="8" Width="140"/>
                                </Grid>
                                <Grid>
                                    <Button x:Name="imgVisible" Click="PasswordBoxInVisible" Width="30">
                                        <Button.Background>
                                            <ImageBrush ImageSource="image\visible.png" />
                                        </Button.Background>
                                    </Button>
                                    <Button x:Name="imgInVisible" Visibility="Hidden" Click="PasswordBoxVisible" Width="30">
                                        <Button.Background>
                                            <ImageBrush ImageSource="image\invisible.png"/>
                                        </Button.Background>
                                    </Button>
                                </Grid>
                            </StackPanel>
                        </StackPanel>-->
                        <Button Content="Добавить" FontSize="16" Background="Transparent" Click="BtnAddEmployeesClick" Margin="463,405,185,9" />
                        <Button Content="Отмена" FontSize="16" Background="Transparent" Click="BtnBackEmployeesClick" Margin="663,405,41,9" />
                    </Grid>

                    <Grid x:Name="gridChangeEmployees" Visibility="Hidden" Background="White">
                        <StackPanel Margin="20,82,450,166">
                            <StackPanel  Orientation="Horizontal" Height="43">
                                <TextBlock Text="Фамилия:" Width="140"/>
                                <TextBox x:Name="txtLastName_ChangeEmployyes" TextWrapping="Wrap" Width="200"/>
                            </StackPanel>
                            <StackPanel  Orientation="Horizontal" Height="43">
                                <TextBlock Text="Имя:" Width="140"/>
                                <TextBox x:Name="txtFirstName_ChangeEmployyes" TextWrapping="Wrap" Width="200"/>
                            </StackPanel>
                            <StackPanel  Orientation="Horizontal" Height="43">
                                <TextBlock Text="Отчество:" Width="140"/>
                                <TextBox x:Name="txtMiddleName_ChangeEmployees" TextWrapping="Wrap" Width="200"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Роль:" Width="140"/>
                                <ComboBox Name="comboboxRole_ChangeEmployees" Background="Transparent" Width="200">
                                    <TextBlock Text="Системный администратор"/>
                                    <TextBlock Text="Администратор"/>
                                </ComboBox>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Height="30">
                                <TextBlock Text="Статус:" Width="140"/>
                                <ComboBox Name="comboboxStatus_ChangeEmployees" Background="Transparent" Width="200">
                                    <TextBlock Text="Работает"/>
                                    <TextBlock Text="Уволен"/>
                                </ComboBox>
                            </StackPanel>
                        </StackPanel>
                       
                        <Button Content="Изменить" FontSize="16" Background="Transparent" Click="BtnSaveChangeEmployeesClick" Margin="463,405,185,9" />
                        <Button Content="Отмена" FontSize="16" Background="Transparent" Click="BtnBackEmployeesClick" Margin="663,405,41,9" />
                    </Grid>

                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
