<Window x:Class="Inventory.SystemAdminWindow"
        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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
        xmlns:local="clr-namespace:Inventory"
        mc:Ignorable="d"
        Title="SystemAdminWindow"  WindowStartupLocation="CenterScreen" AllowsTransparency="True" Background="Transparent" WindowStyle="None" ResizeMode="NoResize" Icon="Image/logo.png" Height="600" Width="1000" Loaded="Window_Loaded">
    <Grid MouseDown="Grid_MouseDown">
        <Border BorderThickness="0" Background="#516DF6" CornerRadius="35"/>
        <Border BorderThickness="0" Background="#F6F8FC" BorderBrush="Black" CornerRadius="35" Margin="16,86,694,54"/>
        <Label Content="Инвентаризация" HorizontalAlignment="Center" FontFamily="Century Gothic" VerticalAlignment="Center" FontSize="36" Foreground="#F6F8FC" Width="307" Margin="117,16,576,538" Height="46"/>
        <Grid Margin="16,120,694,237">
            <StackPanel Orientation="Vertical" VerticalAlignment="Top" Margin="0,0,0,-175" Height="275">
                <Button Uid="0" Content="Главная" FontFamily="Century Gothic" materialDesign:RippleAssist.Feedback="#516DF6" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Click="Button_Click" Margin="0,0,-0.4,0"/>
                <Button Uid="1" Content="Кабинеты" FontFamily="Century Gothic" materialDesign:RippleAssist.Feedback="#516DF6" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Click="Button_Click" Margin="0,0,-0.4,0"/>
                <Button Uid="2" Content="Оборудование" FontFamily="Century Gothic" materialDesign:RippleAssist.Feedback="#516DF6" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Click="Button_Click" Margin="0,0,-0.4,0"/>
                <Button Uid="3" Content="Учёт" FontFamily="Century Gothic" materialDesign:RippleAssist.Feedback="#516DF6" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Click="Button_Click" Margin="0,0,-0.4,0"/>
                <Button Uid="4" Content="Настройки" FontFamily="Century Gothic" materialDesign:RippleAssist.Feedback="#516DF6" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Click="Button_Click" Margin="0,0,-0.4,0"/>
            </StackPanel>
        </Grid>
        <Grid x:Name="GridCursor" Width="8" Background="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="298,120,0,0" RenderTransformOrigin="0.5,0.5" Height="50">
        </Grid>
        <Image Source="Image/logo.png" Margin="50,399,733,76"/>
        <Button Content="{materialDesign:PackIcon Backburger, Size=50}" Background="Transparent" BorderThickness="0" Height="Auto" Margin="10,10,914,527" Click="Back"/>
        <Button Content="{materialDesign:PackIcon ExitToApp, Size=50}" Background="Transparent" BorderThickness="0" Height="Auto" Margin="904,10,10,527" Click="Exit"/>
        <Button Content="{materialDesign:PackIcon Kind=WindowMinimize, Size=50}" Background="Transparent" BorderThickness="0" Height="Auto" Margin="818,10,96,527" Click="Minimized"/>
        <TextBlock Name="timetxt" HorizontalAlignment="Center" FontFamily="Century Gothic" Margin="517,23,210,0" TextWrapping="Wrap" Foreground="White" FontSize="28" VerticalAlignment="Top" Height="46" Width="273"/>

        <Grid x:Name="gridglav" Visibility="Visible">
            <Image HorizontalAlignment="Left" Height="299" Margin="398,230,0,0" Source="Image/person.png" VerticalAlignment="Top" Width="352"/>
            <Image HorizontalAlignment="Left" Height="211" Margin="501,87,0,0" VerticalAlignment="Top" Width="284" Source="Image/dialog.png"/>
            <Label Name="labelpriv" Foreground="Black" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Century Gothic" FontSize="15" Margin="501,140,215,424" Width="284" Height="36" FontWeight="Bold"/>
        </Grid>
        <Grid x:Name="gridoborot" Visibility="Hidden">
            <TextBlock x:Name="idoborodtxt" Visibility="Hidden"/>
            <Border Background="White" BorderThickness="0" BorderBrush="Black" CornerRadius="35" Margin="330,86,10,54"/>
            <Label Content="Оборудование" HorizontalContentAlignment="Center" HorizontalAlignment="Center" FontFamily="Century Gothic" VerticalAlignment="Center" FontSize="36" Foreground="Black" Width="307" Margin="515,96,178,458" Height="46"/>
            <TextBox x:Name="oborydname" Margin="345,201,285,354" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Наименование оборудования" materialDesign:TextFieldAssist.UnderlineBrush="Black" FontSize="18" MaxLength="25" TextChanged="Rus_TextChanged" KeyDown="oborydname_KeyDown"/>
            <Border Background="Black" Margin="330,181,10,418"/>
            <TextBox x:Name="poiskoboryd" Margin="735,201,95,354" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Поиск" materialDesign:TextFieldAssist.UnderlineBrush="Black" MaxLength="25" FontSize="18" TextChanged="poiskoboryd_TextChanged"/>
            <Image Source="Image/oboryd.png" Margin="356,284,270,30"/>
            <StackPanel Margin="356,267,285,263" Orientation="Horizontal">
                <Button x:Name="AddOborot" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="50,0,0,0" Click="Addoborod">
                    <materialDesign:PackIcon Kind="Add" Width="30" Height="30"/>
                </Button>
                <Button x:Name="UpdateOborot" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0" Click="Updateoborod">
                    <materialDesign:PackIcon Kind="Edit"  Width="30" Height="30" />
                </Button>
                <Button x:Name="DeleteOborot" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0" Click="Deleteoborod">
                    <materialDesign:PackIcon Kind="Delete"  Width="30" Height="30" />
                </Button>
            </StackPanel>
            <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" Margin="926,201,26,351" materialDesign:RippleAssist.Feedback="#516DF6" Click="Refreshoborod">
                <materialDesign:PackIcon Kind="Refresh" Height="30" Width="30"/>
            </Button>
            <DataGrid Name="dataoborod" HorizontalAlignment="Left" IsReadOnly="True" BorderThickness="1" BorderBrush="Black" Height="241" Margin="735,267,0,0" VerticalAlignment="Top" Width="239" SelectionChanged="dataoborod_SelectionChanged"/>
        </Grid>

        <Grid x:Name="gridkabinet" Visibility="Hidden">
            <TextBlock x:Name="idkabinettxt" Visibility="Hidden"/>
            <Border Background="White" BorderThickness="0" BorderBrush="Black" CornerRadius="35" Margin="330,86,10,54"/>
            <Label Content="Кабинеты" HorizontalContentAlignment="Center" HorizontalAlignment="Center" FontFamily="Century Gothic" VerticalAlignment="Center" FontSize="36" Foreground="Black" Width="307" Margin="515,96,178,458" Height="46"/>
            <Border Background="Black" Margin="330,181,10,418"/>
            <TextBox x:Name="kabinetname" Margin="345,201,285,354" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Наименование кабинета" materialDesign:TextFieldAssist.UnderlineBrush="Black" FontSize="18" MaxLength="25" TextChanged="Rus_TextChanged" KeyDown="kabinetname_KeyDown"/>
            <TextBox x:Name="poiskabinet" Margin="735,201,95,354" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Поиск" materialDesign:TextFieldAssist.UnderlineBrush="Black" MaxLength="25" FontSize="18" TextChanged="poiskabinet_TextChanged"/>
            <Image Source="Image/kabinet.png" Margin="373,321,324,54"/>
            <StackPanel Margin="356,267,285,263" Orientation="Horizontal">
                <Button x:Name="AddKabinet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="50,0,0,0" Click="AddKabinet_Click">
                    <materialDesign:PackIcon Kind="Add" Width="30" Height="30"/>
                </Button>
                <Button x:Name="UpdateKabinet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0" Click="UpdateKabinet_Click">
                    <materialDesign:PackIcon Kind="Edit"  Width="30" Height="30" />
                </Button>
                <Button x:Name="DeleteKabinet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0" Click="DeleteKabinet_Click">
                    <materialDesign:PackIcon Kind="Delete"  Width="30" Height="30" />
                </Button>
            </StackPanel>
            <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" Margin="926,201,26,351" materialDesign:RippleAssist.Feedback="#516DF6" Click="RefreshKabinet">
                <materialDesign:PackIcon Kind="Refresh" Height="30" Width="30"/>
            </Button>
            <DataGrid Name="datakabinet" HorizontalAlignment="Left" IsReadOnly="True" BorderThickness="1" BorderBrush="Black" Height="241" Margin="735,267,0,0" VerticalAlignment="Top" Width="239" SelectionChanged="datakabinet_SelectionChanged"/>
        </Grid>

        <Grid Name="gridychet" Visibility="Hidden">
            <TextBlock x:Name="idychettxt" Visibility="Hidden"/>
            <Border Background="White" BorderThickness="0" BorderBrush="Black" CornerRadius="35" Margin="330,86,10,54"/>
            <Label Content="Учёт" HorizontalContentAlignment="Center" HorizontalAlignment="Center" FontFamily="Century Gothic" VerticalAlignment="Center" FontSize="36" Foreground="Black" Width="307" Margin="515,96,178,458" Height="46"/>
            <Label Content="Сортировать по:" HorizontalContentAlignment="Left" HorizontalAlignment="Center" FontFamily="Century Gothic" VerticalAlignment="Center" FontSize="24" Foreground="Black" Width="207" Margin="348,216,445,338" Height="46"/>
            <Border Background="Black" Margin="330,267,10,332"/>
            <ComboBox Name="combocabinet" Margin="348,281,377,283" Height="36" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Кабинет" FontSize="18" materialDesign:TextFieldAssist.UnderlineBrush="Black"/>
            <ComboBox Name="combooboryd" Margin="348,335,377,229" Height="36" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Оборудование" FontSize="18" materialDesign:TextFieldAssist.UnderlineBrush="Black"/>
            <TextBox x:Name="kolvoychet" Margin="348,390,377,165" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Количество оборудования" materialDesign:TextFieldAssist.UnderlineBrush="Black" FontSize="18" MaxLength="5"/>
            <StackPanel Margin="348,447,377,83" Orientation="Horizontal">
                <Button x:Name="Addychet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="20,0,0,0">
                    <materialDesign:PackIcon Kind="Add" Width="30" Height="30"/>
                </Button>
                <Button x:Name="Updateychet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0">
                    <materialDesign:PackIcon Kind="Edit"  Width="30" Height="30" />
                </Button>
                <Button x:Name="Deleteychet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0">
                    <materialDesign:PackIcon Kind="Delete"  Width="30" Height="30" />
                </Button>
            </StackPanel>

            <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" Margin="926,201,26,351" materialDesign:RippleAssist.Feedback="#516DF6">
                <materialDesign:PackIcon Kind="Refresh" Height="30" Width="30"/>
            </Button>
            <DataGrid Name="dataychet" HorizontalAlignment="Left" IsReadOnly="True" BorderThickness="1" BorderBrush="Black" Height="252" Margin="632,281,0,0" VerticalAlignment="Top" Width="346" SelectionChanged="datakabinet_SelectionChanged"/>
        </Grid>
    </Grid>
</Window>
