<!--
/*
** Job Arranger Manager
** Copyright (C) 2012 FitechForce, Inc. All Rights Reserved.
** Copyright (C) 2013 Daiwa Institute of Research Business Innovation 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.
**
**/
-->
    <src:BaseWindow x:Class="jp.co.ftf.jobcontroller.JobController.Form.ScheduleEdit.ScheduleCalendarRegistWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:design="clr-namespace:jp.co.ftf.jobcontroller.JobController.Form.ScheduleEdit"
        xmlns:src="clr-namespace:jp.co.ftf.jobcontroller.JobController" 
        Title="{x:Static src:Properties.Resources.WINDOW_NAME_221}" Height="650" Width="1070"
        FontFamily="Meiryo" FontSize="11">
    <Grid  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" DockPanel.Dock="Top" >
        <Grid Name="grid" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="272" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Border Grid.Column="0" Margin="1,1,1,1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BorderThickness="1" BorderBrush="Black" >
                <TreeView Name="treeView1" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Auto">
                    <TreeViewItem Header="{x:Static src:Properties.Resources.calendar_node_text}" Name="treeViewCalendar">
                        <TreeViewItem Header="{x:Static src:Properties.Resources.public_calendar_node_text}" Name="publicCalendar" Selected="Public_Calendar_Selected"/>
                        <TreeViewItem Header="{x:Static src:Properties.Resources.private_calendar_node_text}" Name="privateCalendar" Selected="Private_Calendar_Selected"/>
                        <TreeViewItem Header="{x:Static src:Properties.Resources.public_filter_node_text}" Name="publicFilter" Selected="Public_Filter_Selected"/>
                        <TreeViewItem Header="{x:Static src:Properties.Resources.private_filter_node_text}" Name="privateFilter" Selected="Private_Filter_Selected"/>
                    </TreeViewItem>
                </TreeView>
            </Border>
            <GridSplitter Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Center" Width="8"
                                      Background="White" ShowsPreview="True"/>
            <Grid Grid.Column="2" Name="CalendarGrid" Background="{StaticResource BackgroundBrush}">
                <Grid.RowDefinitions>
                    <RowDefinition Height="80"/>
                    <RowDefinition Height="425*" />
                    <RowDefinition Height="40" />
                </Grid.RowDefinitions>
                <Grid Grid.Row="0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="25"/>
                    </Grid.RowDefinitions>
                    <TextBlock Grid.Row="0" Text="{x:Static src:Properties.Resources.object_id_col_head_text}" Height="23" HorizontalAlignment="Left" Margin="6,5,0,0" VerticalAlignment="Bottom" />
                    <TextBlock Grid.Row="0" Height="23" Width="246" HorizontalAlignment="Left" Margin="94,5,0,0" Name="lblObjectId" VerticalAlignment="Bottom" />
                    <TextBlock Grid.Row="0" Text="{x:Static src:Properties.Resources.public_label_text}" Height="23" HorizontalAlignment="Left" Margin="400,5,0,0" VerticalAlignment="Bottom" />
                    <TextBlock Grid.Row="0" Height="23" HorizontalAlignment="Left" Margin="440,5,0,0" Name="lblOpen" VerticalAlignment="Bottom" />
                    <TextBlock Grid.Row="0" Text="{x:Static src:Properties.Resources.update_date_label_text}" Height="23" HorizontalAlignment="Left" Margin="560,5,0,0" VerticalAlignment="Bottom" />
                    <TextBlock Grid.Row="0" Text="" Height="23" Width="140" HorizontalAlignment="Left" Margin="630,5,0,0" Name="lblUpdDate" VerticalAlignment="Bottom" />
                    <TextBlock Grid.Row="1" Height="23" Text="{x:Static src:Properties.Resources.object_name_col_head_text}" HorizontalAlignment="Left" Margin="6,0,0,0" VerticalAlignment="Bottom"/>
                    <TextBlock Grid.Row="1" Height="23" Width="450" HorizontalAlignment="Left" Margin="94,0,0,0" Name="lblObjectName" VerticalAlignment="Bottom" TextWrapping="WrapWithOverflow" />
                    <TextBlock Grid.Row="1" Height="23" Text="{x:Static src:Properties.Resources.user_name_label_text}" HorizontalAlignment="Left" Margin="560,0,0,0" VerticalAlignment="Bottom" />
                    <TextBlock Grid.Row="1" Height="23" Width="100" HorizontalAlignment="Left" Margin="630,0,0,0" Name="lblUserName" VerticalAlignment="Bottom" TextWrapping="WrapWithOverflow" />
                    <TextBlock Grid.Row="2" Text="{x:Static src:Properties.Resources.memo_label_text}" Height="23" HorizontalAlignment="Left" Margin="6,0,0,0" VerticalAlignment="Bottom" />
                    <TextBlock Grid.Row="2" Height="23" Margin="94,0,0,0" Name="lblComment" VerticalAlignment="Bottom" TextWrapping="WrapWithOverflow"/>
                </Grid>
                <design:CalendarContainer x:Name="container" Grid.Row="1" Loaded="container_Loaded"></design:CalendarContainer>
                <Button Grid.Row="2" Content="{x:Static src:Properties.Resources.regist_button_text}" Height="28" Name="btnRegist" Width="75" Margin="0,6,120,6" 
                HorizontalAlignment="Right" Click="regist_Click" IsDefault="True"/>
                <Button Grid.Row="2" Content="{x:Static src:Properties.Resources.cancel_button_text}" Height="28" Name="btnCancle" Width="75"
                Margin="0,6,40,6" HorizontalAlignment="Right" Click="cancel_Click" IsCancel="True"/>
            </Grid>
        </Grid>
    </Grid>

</src:BaseWindow>
