<!--
/*
** Job Arranger Manager
** Copyright (C) 2012 FitechForce, Inc. All Rights Reserved.
** Copyright (C) 2013 Daiwa Institute of Research Business Innovation Ltd. All Rights Reserved.
** Copyright (C) 2021 Daiwa Institute of Research Ltd. All Rights Reserved.
**
** Licensed to the Apache Software Foundation (ASF) under one or more
** contributor license agreements. See the NOTICE file distributed with
** this work for additional information regarding copyright ownership.
** The ASF licenses this file to you under the Apache License, Version 2.0
** (the "License"); you may not use this file except in compliance with
** the License. You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**
**/
-->
<UserControl x:Class="jp.co.ftf.jobcontroller.JobController.Form.FilterEdit.Container"
             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"
             xmlns:src="clr-namespace:jp.co.ftf.jobcontroller.JobController"
             xmlns:design="clr-namespace:jp.co.ftf.jobcontroller.JobController.Form.CalendarEdit"
             FontFamily="Meiryo" FontSize="11">
    <!--<Grid x:Name="LayoutRoot"  Background="WhiteSmoke" ShowGridLines="False" Margin="0,0,5,0" >-->
    <Grid x:Name="LayoutRoot"  ShowGridLines="False" Margin="0,0,5,0" Width="871">
        <Grid.RowDefinitions >
            <RowDefinition Height="30"   />
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions >

        <TextBlock Grid.Row="0"
            Text="{x:Static src:Properties.Resources.calendar_label_text}"
            HorizontalAlignment="Left"
            Margin="5,10,0,0"
            Width="Auto" />
        <ComboBox Grid.Row="0"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            Margin="94,7,0,0"
            Width="180"
            Name="cmbCalendar"
            SelectionChanged="Calendar_SelectionChanged" />
        <Grid Height="28" Width="95" Margin="289,2,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" >
            <Button Name="btnLeft"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Margin="0,8,0,0"
                Width="20"
                Height="20"
                Click="left_arrow_click"
                Grid.Row="0"
                BorderBrush="Transparent"
                BorderThickness="0"
                Background="Transparent"
                Foreground="White">
                <Button.Template>
                    <ControlTemplate TargetType="Button">
                        <ContentPresenter Content="{TemplateBinding Content}"/>
                    </ControlTemplate>
                </Button.Template>
                <Image Source="../../../Resources/arrow_left.gif" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
            </Button>
            <TextBox HorizontalAlignment="Left"
                Margin="31,7,0,0"
                Name="textBox_year"
                VerticalAlignment="Top"
                Text=""
                Width="Auto"
                IsReadOnly="True" />
            <Button Name="btnRight"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Margin="75,8,0,0"
                Width="20"
                Height="20"
                Click="right_arrow_click"
                Grid.Row="0"
                BorderBrush="Transparent"
                BorderThickness="0"
                Background="Transparent"
                Foreground="White">
                <Button.Template>
                    <ControlTemplate TargetType="Button">
                        <ContentPresenter Content="{TemplateBinding Content}"/>
                    </ControlTemplate>
                </Button.Template>
                <Image Source="../../../Resources/arrow_right.gif" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
            </Button>
        </Grid>
        <Border Margin="2" Grid.Row="1" Grid.Column="0"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BorderThickness="1" BorderBrush="Black">
            <ScrollViewer HorizontalAlignment="Stretch"  Name="svContainer" VerticalAlignment="Stretch" HorizontalScrollBarVisibility="Visible">
                <ScrollViewer.Content>
                    <design:ScrollViewerWindowsFormsHost x:Name="winForm" HorizontalAlignment="Left" VerticalAlignment="Stretch"/>
                </ScrollViewer.Content>
            </ScrollViewer>
        </Border>
        <Grid Height="28" Margin="393,2,2,0" Name="grid1" VerticalAlignment="Top">
            <Grid.RowDefinitions>
                <RowDefinition Height="15*" />
                <RowDefinition Height="13*" />
            </Grid.RowDefinitions>
            <Label Content="{x:Static src:Properties.Resources.base_date_node_text}"
                Height="23"
                Width="72"
                Margin="0,4,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top" Grid.RowSpan="2" />
            <RadioButton Content="{x:Static src:Properties.Resources.first_day_button_text}"
                Height="17"
                Margin="72,8,0,3"
                HorizontalAlignment="Left"
                VerticalAlignment="Center"
                GroupName="baseDate" Name="rbFirstDay" Checked="RadioButton_Checked" Grid.RowSpan="2" />
            <RadioButton Content="{x:Static src:Properties.Resources.last_day_button_text}"
                Height="17"
                Margin="144,8,0,3"
                HorizontalAlignment="Left"
                VerticalAlignment="Center"
                GroupName="baseDate" Name="rbLastDay" Checked="RadioButton_Checked" Grid.RowSpan="2" />
            <RadioButton Content="{x:Static src:Properties.Resources.designated_day_button_text}"
                Height="17"
                Margin="216,8,152,3" VerticalAlignment="Center"
                GroupName="baseDate" Name="rbDesignatedDay" Checked="RadioButton_Checked" Grid.RowSpan="2" />
            <TextBox Name="tbDesignatedDay"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Margin="327,7,0,0"
                Width="30"
                MaxLength="2"
                Text=""
                TextChanged="DesignatedDay_TextChanged" Grid.RowSpan="2" />
            <Label Content="{x:Static src:Properties.Resources.shift_day_node_text}" VerticalAlignment="Top"
                Margin="364,4,52,0"
                Height="23" Grid.RowSpan="2" />
            <ComboBox Name="cmbShiftDay"
                HorizontalAlignment="Right"
                VerticalAlignment="Top"
                Margin="0,7,12,0"
                Width="40"
                SelectionChanged="ShiftDay_SelectionChanged" Grid.RowSpan="2" />
        </Grid>
    </Grid>
</UserControl>
