<Window x:Class="JtkPcClientWpf.MainWindow"
        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:JtkPcClientWpf"
        mc:Ignorable="d"
        Title="{Binding Source={StaticResource loginManager}, Path=TimeLeft, StringFormat='\{0:hh\\:mm} 남음'}" Height="165.333" Width="380.333" Loaded="Window_Loaded" Closed="Window_Closed" ResizeMode="NoResize" WindowStyle="None" MouseDown="Window_MouseDown" AllowsTransparency="True" Background="Transparent" WindowStartupLocation="CenterScreen">
    <Border CornerRadius="5" BorderBrush="#FF7C7C7C" BorderThickness="2">
        <Border.Background>
            <ImageBrush ImageSource="black wallpaper.jpg" Stretch="UniformToFill"/>
        </Border.Background>
        <Grid Margin="10,0,0.333,10">
            <Grid.Resources>
                <Style TargetType="TextBlock">
                    <Setter Property="Foreground" Value="White" />
                    <!--<Setter Property="FontWeight" Value="Bold" />-->
                    <Setter Property="FontSize" Value="18"/>
                </Style>
            </Grid.Resources>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top">
                <Button x:Name="MinimizeButton" Margin="5" KeyboardNavigation.IsTabStop="False" Content="ㅡ" Click="MinimizeButton_Click" Width="22" FontWeight="Bold"/>
            </StackPanel>

            <Border CornerRadius="5" BorderBrush="#FF3B3B3B" BorderThickness="1" Margin="0,39,9.667,28.333" >
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop x:Name="GradStop1" Color="#FF292929" Offset="0"/>
                        <GradientStop x:Name="GradStop2" Color="#FF5B5B5B" Offset="1"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Line StrokeThickness="2" Stroke="#54FFFFFF" X1="80" X2="80" Y2="78" Y1="5" />
            </Border>

            <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding Source={StaticResource loginManager}, Path=PcNumber, StringFormat='\{0:000}'}" VerticalAlignment="Top" Margin="10,54,0,0" FontSize="36">
                <TextBlock.Effect>
                    <DropShadowEffect BlurRadius="20" ShadowDepth="0"/>
                </TextBlock.Effect>
            </TextBlock>
            <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding Source={StaticResource loginManager}, Path=UserId, StringFormat='\{0}'}" VerticalAlignment="Top" Margin="93,53,0,0">
                <TextBlock.Effect>
                    <DropShadowEffect BlurRadius="20" ShadowDepth="0"/>
                </TextBlock.Effect>
            </TextBlock>
            <TextBlock TextWrapping="Wrap" Text="{Binding Source={StaticResource loginManager}, Path=Cash, StringFormat='\{0:N0}원 남음'}" VerticalAlignment="Top" Margin="0,53,22.667,0" HorizontalAlignment="Right" Width="140" TextAlignment="Right">
                <TextBlock.Effect>
                    <DropShadowEffect BlurRadius="20" ShadowDepth="0"/>
                </TextBlock.Effect>
            </TextBlock>
            <TextBlock TextWrapping="Wrap" Text="{Binding Source={StaticResource loginManager}, Path=TimeLeft, StringFormat='\{0:hh\\:mm} 남음'}" VerticalAlignment="Top" Margin="0,82,22.667,0" HorizontalAlignment="Right" Width="140" TextAlignment="Right">
                <TextBlock.Effect>
                    <DropShadowEffect BlurRadius="20" ShadowDepth="0"/>
                </TextBlock.Effect>
            </TextBlock>
            <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding Source={StaticResource loginManager}, Path=LoginTime, StringFormat='\{0:HH:mm} 시작'}" VerticalAlignment="Top" Margin="93,82,0,0">
                <TextBlock.Effect>
                    <DropShadowEffect BlurRadius="20" ShadowDepth="0"/>
                </TextBlock.Effect>
            </TextBlock>
            <Button x:Name="OrderButton" Content="상품주문" VerticalAlignment="Bottom" Margin="0,0,294.667,1.333" Click="Order_Click"/>
            <Button x:Name="EndButton" Content="사용종료" VerticalAlignment="Bottom" Margin="285,0,9.667,1.333" Click="Logout_Click"/>
            <TextBlock HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="{Binding PlaceName, Source={StaticResource loginManager}, StringFormat=\{0\}}" VerticalAlignment="Top" Foreground="White"  FontWeight="Bold">
                <TextBlock.Effect>
                    <DropShadowEffect BlurRadius="10" ShadowDepth="2"/>
                </TextBlock.Effect>
            </TextBlock>

        </Grid>
    </Border>
</Window>
