<Window x:Class="Nappat.Testing.WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="NAPPAT | Automatic testing" MinHeight="500" MinWidth="500" Height="520" Width="800" WindowStartupLocation="CenterScreen" Icon="Properties\Icons\win8\icon.png" Closing="Window_Closing" Loaded="Window_Loaded" >
    <Grid>
        <DockPanel>
            <Menu x:Name="mainMenu" IsMainMenu="True" Height="20" VerticalAlignment="Top" DockPanel.Dock="Top">
                <MenuItem x:Name="programMenuItem" Header="Program">
                    <MenuItem x:Name="saveMenuItemx" Header="Save Test" Click="saveMenuItem_Click" >
                        <MenuItem.Icon>
                            <Image Source="Properties/Icons/win8/save.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem x:Name="loadMenuItem" Header="Load Test" Click="loadMenuItem_Click">
                        <MenuItem.Icon>
                            <Image Source="Properties/Icons/win8/load.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem x:Name="closeMenuItem" Header="Close Program" Click="closeMenuItem_Click">
                        <MenuItem.Icon>
                            <Image Source="Properties/Icons/win8/close.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                </MenuItem>
                <MenuItem x:Name="testMenuItem" Header="Test">
                    <MenuItem x:Name="interpretMenuItem" Header="Interpret" Click="interpretMenuItem_Click">
                        <MenuItem.Icon>
                            <Image Source="Properties/Icons/win8/interpret.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem x:Name="createAndInterpretMenuItem" Header="Create and Interpret" Click="createAndInterpretMenuItem_Click">
                        <MenuItem.Icon>
                            <Image Source="Properties/Icons/win8/createAndInterpret.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                </MenuItem>
                <MenuItem x:Name="helpMenuItem" Header="Help" Click="helpMenuItem_Click" />
            </Menu>
            <Grid DockPanel.Dock="Bottom">
                <Button x:Name="startButton" Content="Start" HorizontalAlignment="Left" Margin="20,20,0,0" VerticalAlignment="Top" Width="75" Click="startButton_Click" />
                <Button x:Name="stopButton" Content="Stop" HorizontalAlignment="Left" Margin="120,20,0,0" VerticalAlignment="Top" Width="75" Click="stopButton_Click" />
                <Button x:Name="saveLog" Content="Save Log" Margin="0,20,10,0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75" Click="saveLog_Click"/>
                <RichTextBox x:Name="logTextBox" Margin="10,50,10,50" FontFamily="Courier New" Background="White" Foreground="Black" BorderBrush="Black" BorderThickness="3" IsReadOnly="True" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
                    <RichTextBox.Resources>
                        <Style TargetType="{x:Type Paragraph}">
                            <Setter Property="Margin" Value="0"/>
                        </Style>
                    </RichTextBox.Resources>
                </RichTextBox>
                <ProgressBar x:Name="progressBar" Height="26" Margin="10,0,10,18" VerticalAlignment="Bottom" IsIndeterminate="False" />
                <Label x:Name ="startTimeLabel" Content="0 %" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="10,0,10,18"/>
                <Label x:Name ="finishTimeLabel" ContentStringFormat=" {0:mm\:ss}" Content="Finish time" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="10,0,10,18"/>
                <StackPanel HorizontalAlignment="Left" Height="100" Margin="153,108,0,0" VerticalAlignment="Top" Width="100"/>
            </Grid>
        </DockPanel> 
    </Grid>
</Window>
