<Window x:Class="XDM.Wpf.UI.Dialogs.QueuesWindow.ManageQueueDialog"
        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:XDM.Wpf.UI.Dialogs.QueuesWindow"
        xmlns:sc="clr-namespace:XDM.Wpf.UI.Dialogs.Scheduler"
        mc:Ignorable="d"
        Title="{StaticResource DESC_Q_TITLE}" Height="500" Width="700" ShowInTaskbar="False" 
        WindowStartupLocation="CenterOwner" >
    <DockPanel Margin="5">
        <Grid Margin="5,5" DockPanel.Dock="Left">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <ListBox Grid.ColumnSpan="2" MinWidth="150" Name="LbQueues" BorderBrush="{StaticResource ControlBordercolor}" BorderThickness="1">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Name}" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
            <Button Name="BtnNew" Content="{StaticResource DESC_NEW}" Margin="0,10,5,0" Padding="3" Grid.Row="1" Click="BtnNew_Click"/>
            <Button Name="BtnDel" Content="{StaticResource DESC_DEL}" Grid.Column="1" Margin="5,10,5,0" Padding="3" Grid.Row="1" Click="BtnDel_Click"/>
        </Grid>
        <Grid Margin="0,5,5,5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TabControl Grid.ColumnSpan="5" Name="Tab">
                <TabItem Header="{StaticResource Q_LIST_FILES}">
                    <Grid Margin="0,0,0,0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <ListView Margin="10" Name="lvFiles" Grid.ColumnSpan="7" Grid.Column="1" >
                            <ListView.View>
                                <GridView>
                                    <GridViewColumn Header="{StaticResource ND_FILE}" Width="200" DisplayMemberBinding="{Binding Name}" />
                                    <GridViewColumn Header="{StaticResource SORT_SIZE}" Width="80" DisplayMemberBinding="{Binding Path=Size, Converter={StaticResource FileSizeValueConverter}}" />
                                    <GridViewColumn Header="{StaticResource SORT_STATUS}" Width="150" DisplayMemberBinding="{Binding Status}" />
                                </GridView>
                            </ListView.View>
                        </ListView>
                        <Button Name="BtnAdd" Content="{StaticResource Q_ADD}" 
                                Margin="10,5,5,5" Padding="10,3" Grid.Row="1" 
                                Grid.Column="1" 
                                Click="BtnAdd_Click"/>
                        <Button Name="BtnRemove" Content="{StaticResource Q_REMOVE}" Margin="5" Padding="5,3" 
                                Grid.Row="1" Grid.Column="2" Click="BtnRemove_Click"/>
                        <Button Name="BtnUp" Content="{StaticResource Q_MOVE_UP}" Margin="5" Padding="5,3" 
                                Grid.Row="1" Grid.Column="3" Click="BtnUp_Click"/>
                        <Button Name="BtnDown" Content="{StaticResource Q_MOVE_DN}" Margin="5" Padding="5,3" 
                                Grid.Row="1" Grid.Column="4" Click="BtnDown_Click"/>
                        <Button Name="BtnMoveTo" Content="{StaticResource Q_MOVE_TO}" Margin="5" Padding="5,3" 
                                Grid.Row="1" Grid.Column="5" Click="BtnMoveTo_Click"/>
                    </Grid>
                </TabItem>
                <TabItem Header="{StaticResource Q_SCHEDULE_TXT}">
                    <DockPanel>
                        <CheckBox Name="ChkEnableScheduler" Content="{StaticResource Q_ENABLE}" DockPanel.Dock="Top" Margin="10"/>
                        <sc:SchedulerPanel x:Name="SchedulerPanel" IsEnabled="False"/>
                    </DockPanel>
                </TabItem>
            </TabControl>
            <Button Name="BtnStart" Content="{StaticResource MENU_START_Q}" Grid.Row="1" Grid.Column="0" Margin="0,10,5,0" Padding="5,3" Click="BtnStart_Click"/>
            <Button Name="BtnStop" Content="{StaticResource MENU_PAUSE}" Grid.Row="1" Grid.Column="1" Margin="5,10,5,0" Padding="20,3" Click="BtnStop_Click"/>
            <Button Name="BtnSave" Content="{StaticResource DESC_SAVE_Q}" Grid.Row="1" Grid.Column="3" Margin="5,10,5,0" Padding="20,3" Click="BtnSave_Click"/>
            <Button Name="BtnCancel" Content="{StaticResource ND_CANCEL}" Grid.Row="1" Grid.Column="4" Margin="5,10,0,0" Padding="15,3" Click="BtnCancel_Click"/>
        </Grid>
    </DockPanel>
</Window>
