<Window x:Class="eDosStation.EpdExit"
        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:eDosStation"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        mc:Ignorable="d"
        Title="Exit" 
        Height="900" Width="1500"  
        ResizeMode="NoResize" 
        VerticalAlignment="Center"
        FontFamily="Segoe UI" FontSize="36" 
        Loaded="Window_Loaded" 
        WindowStartupLocation="CenterScreen" 
        WindowStyle="SingleBorderWindow"
        Closing="Window_Closing">
    <DockPanel>
        <StatusBar DockPanel.Dock="Bottom"  >
            <StatusBarItem Name="statusEPD" Content="Epd" />
        </StatusBar>
        <TabControl>
            <TabItem Name="Wait" HorizontalAlignment="Center" VerticalAlignment="Center"     >
                <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="auto">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100" />
                        <ColumnDefinition Width="400" />
                    </Grid.ColumnDefinitions>
                    
                    <Image Source="/Images/Mannetje.png" Width="87" HorizontalAlignment="Left"/>
                    <TextBlock Grid.Column="1" Text="Waiting for EPD" FontWeight="Bold" VerticalAlignment="Center" Foreground="{StaticResource sckbP}" TextAlignment="Center"  />
                    <Image Grid.Row="1" Grid.ColumnSpan="2" Source="/Images/Mk2OnReader.jpg" Width="300" Margin="10,10,10,50"/>
                    <telerik:RadProgressBar Grid.Row="2" Grid.ColumnSpan="2"  Name="Progress" Style="{StaticResource styleTTOProgessBar}" HorizontalAlignment="Stretch"  />
                    <telerik:RadButton Grid.Row="3" Grid.ColumnSpan="2" Name="bCancel" Content="Cancel" Click="BCloseExit_Click" Style="{DynamicResource OkCancelButton}"  />
                </Grid>
            </TabItem>
            <TabItem Name="ok" VerticalAlignment="Center" HorizontalContentAlignment="Center" >
                <Grid TextBlock.FontSize="40" HorizontalAlignment="Center" Margin="0,100,0,50" >
                    <Grid.RowDefinitions >
                        <RowDefinition Height="auto" />
                        <RowDefinition  Height="auto" />
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Row="0" Grid.ColumnSpan="4" Text="Visit registered" FontSize="50" Foreground="{DynamicResource sckbP}" FontWeight="Bold" TextAlignment="Center" Background="{DynamicResource sckbLB}"   />
                    <TextBlock Grid.Row="1" Grid.Column="0" Text="Pers ID:"  HorizontalAlignment="Right" VerticalAlignment="Center"  Foreground="{DynamicResource sckbP}" FontWeight="Bold" Margin="10,50,10,50" />
                    <TextBlock Grid.Row="1" Grid.Column="1" Name="Wearer" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="50,5,20,5" Text="12345" Foreground="{DynamicResource sckbP}"  />
                    <TextBlock Grid.Row="1" Grid.Column="2" Text="Visit:" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5,5,20,5" Foreground="{DynamicResource sckbP}" FontWeight="Bold"  />
                    <TextBlock Grid.Row="1" Grid.Column="3" Name= "EpdVisit" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5,5,20,5" Text="12345545" Foreground="{DynamicResource sckbP}"  />
                    <TextBlock Grid.Row="2" Grid.Column="0" Text="Dose:"  HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5,5,20,5" Foreground="{DynamicResource sckbP}" FontWeight="Bold" />
                    <StackPanel Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Orientation="Vertical" VerticalAlignment="Center"  Name="DosePanel" >
                        <TextBlock Name="HpDose07" Text="1234" HorizontalAlignment="Left" Margin="50,0,0,0" Foreground="{DynamicResource sckbP}" />
                        <TextBlock Name="HpDose10" Text="1223" HorizontalAlignment="Left" Margin="50,0,0,0" Foreground="{DynamicResource sckbP}" />
                    </StackPanel>
                    <telerik:RadButton Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="4" Name="bCloseExit" Click="BCloseExit_Click"  Content="OK" Width="190"  Style="{StaticResource OkCancelButton}" Margin="0,50,0,50"  VerticalAlignment="Center"  />
                </Grid>
            </TabItem>
            <TabItem Name="Alarm" VerticalAlignment="Center" >
                <StackPanel Margin="50,50,50,50" VerticalAlignment="Center">
                    <Border Style="{StaticResource styleAlarmBorder}"  >
                        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" >
                        <LineBreak/>
                        <Run>Your dose and/or doserate has been above the alarmlevel</Run>
                        <Run>during your visit !</Run>
                        <LineBreak/>
                        <LineBreak/>
                        <Run>Please contact</Run><LineBreak/><Run> the Radioprotection officer of the building.</Run>
                        <LineBreak/><LineBreak/>
                        <Run>He needs to validate and clear your alarm(s).</Run>
                        <LineBreak/>
                        </TextBlock>
                    </Border>
                    <telerik:RadButton  Name="bConfirmAlarm" Click="BConfirmAlarm_Click" Content="OK" Width="190" Style="{StaticResource OkCancelButton}" Margin="50,50,50,50"  />
                </StackPanel>
            </TabItem>
            <TabItem Name="OtherAlarm" >
                <StackPanel VerticalAlignment="Center">
                    <Border Style="{StaticResource styleAlarmBorder}" >
                        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" >
                        <LineBreak/>
                        <Run>Your EPD has encountered a problem.</Run>
                        <LineBreak/><LineBreak/>
                         <Run>Please contact</Run><LineBreak/><Run>the Radioprotection officer of the building.</Run>
                                   <LineBreak/>
                            <LineBreak/>
                            <Run> He needs to investigate the alarm.</Run>
                        </TextBlock>
                    </Border>
                    <telerik:RadButton  Name="bConfirmAlarm2" Click="BConfirmAlarm_Click" Content="OK" Width="190" Height="50" Style="{StaticResource OkCancelButton}" Margin="50,50,50,50" />
                </StackPanel>
            </TabItem>
        </TabControl>
    </DockPanel>
</Window>

    