<Page x:Class="WPF_Sample.Views.Tools.TokenGenerator"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d"
	Title="RestSample" d:DesignWidth="844" Loaded="Page_Loaded" d:Height="500">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0*"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="114*"/>
        </Grid.RowDefinitions>

        <Label Content="Token Generator" FontSize="22" FontWeight="Normal" Height="40" HorizontalAlignment="Left" x:Name="label2" VerticalAlignment="Top" Width="317" Grid.Column="1" Grid.Row="1" Margin="1,0,0,0" />
        <Rectangle Height="1" HorizontalAlignment="Stretch" Margin="10,40,10,0" x:Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Grid.Row="1" Grid.Column="1" />
        <TextBlock FontSize="14" Grid.ColumnSpan="2" Margin="0,57,10,419" Grid.Row="1" HorizontalAlignment="Right" Width="90"/>

        <Label Content="URL:" Margin="8,59,0,411" Grid.Row="1" Grid.Column="1" FontWeight="Bold" HorizontalAlignment="Left" Width="55" />
        <TextBox Grid.ColumnSpan="2" Height="23" Margin="10,82,10,0" Grid.Row="1" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Name="URL"/>

        <Label Grid.ColumnSpan="2" Content="JSON PAYLOAD:" HorizontalAlignment="Left" Margin="7,115,0,0" Grid.Row="1" VerticalAlignment="Top" Width="205"  FontWeight="Bold" />
        <TextBox Grid.ColumnSpan="2" Height="144" Margin="10,139,10,0" Grid.Row="1" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Name="PostData" AcceptsReturn="True" />
        <Button Name="PostButton" Content="Post" Margin="0,297,10,0" Click="PostButton_Click" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" Width="75" Height="22" VerticalAlignment="Top"/>

        <Label Grid.ColumnSpan="2" Content="JSON RESULTS:" HorizontalAlignment="Left" Margin="8,324,0,0" Grid.Row="1" VerticalAlignment="Top" Width="205"  FontWeight="Bold" />
        <TextBox Grid.ColumnSpan="2" Margin="10,347,10,0" Grid.Row="1" TextWrapping="Wrap" Text="JSON Results will display here..." Name="PostResult" Background="#dfdfdf" Height="88" VerticalAlignment="Top"/>
        <CheckBox Name="CheckBoxAutoGenerate" Grid.ColumnSpan="2" Content="Auto Write to File Every Hour" HorizontalAlignment="Left" Margin="10,440,0,0" Grid.Row="1" VerticalAlignment="Top" Width="186" Checked="CheckBox_Checked" Unchecked="CheckBox_UnChecked"/>
        <Label Grid.ColumnSpan="2" Content="Location:" HorizontalAlignment="Left" Margin="10,461,0,0" Grid.Row="1" VerticalAlignment="Top" FontWeight="Bold"/>

        <Label Grid.ColumnSpan="2" Name="CountdownLabel" Content="0:00" HorizontalAlignment="Left" Margin="181,435,0,0" Grid.Row="1" VerticalAlignment="Top"/>

        <TextBlock Canvas.Left="10"  Canvas.Top="400" FontSize="14" Grid.ColumnSpan="2" Margin="77,464,20,0" Grid.Row="1" Height="20" VerticalAlignment="Top">
            <Hyperlink Click="OpenLocation_Click"> <TextBlock x:Name="LocationPath"/></Hyperlink>
        </TextBlock>



    </Grid>
</Page>
