<Window x:Class="Sched.CustomDialogs.GeneratedTimetableViewDialog"
        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:Sched.CustomDialogs"
        xmlns:customCtrl="clr-namespace:Sched.CustomControls"
        mc:Ignorable="d"
        Title="{DynamicResource GeneratedTimetableViewDialog_Title}" Height="450" Width="800">
    <Window.Resources>
        <Style TargetType="Button" x:Key="Style_BTN">
            <Setter Property="Padding" Value="5"/>
            <Setter Property="Margin" Value="0,5,5,5"/>
            <Setter Property="VerticalAlignment" Value="Bottom"/>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ScrollViewer Name="SC" Grid.Row="0" VerticalScrollBarVisibility="Visible">
            <customCtrl:Timetable x:Name="TT"/>
        </ScrollViewer>
        <StackPanel Grid.Row="1" Orientation="Vertical" HorizontalAlignment="Left">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                <TextBlock Text="{DynamicResource GeneratedTimetableViewDialog_LessonRatio}" Margin="5"/>
                <TextBlock Name="TB_LessonRatio" Text="0/0" Margin="0,5"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                <TextBlock Text="{DynamicResource GeneratedTimetableViewDialog_Unassigned}" Margin="5"/>
                <TextBlock Name="TB_UnassignedLessons" Text=" " Margin="5"/>
            </StackPanel>
        </StackPanel>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Name="BTN_Optimize" Content="{DynamicResource GeneratedTimetableViewDialog_Optimize}" Grid.Row="1" Style="{StaticResource Style_BTN}"/>
            <Button Name="BTN_Print" Content="{DynamicResource BTN_Print}" Grid.Row="1"  Style="{StaticResource Style_BTN}"/>
            <Button Name="BTN_SaveToDB" Content="{DynamicResource BTN_SaveToDB}" Grid.Row="1" Style="{StaticResource Style_BTN}"/>
            <Button Name="BTN_Cancel" Content="{DynamicResource BTN_Cancel}" Grid.Row="1" Style="{StaticResource Style_BTN}"/>
        </StackPanel>
        
        
    </Grid>
</Window>
