<Window x:Class="DispSmpl.MainWindow"
        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:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:wfc="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"
        xmlns:local="clr-namespace:DispSmpl"
        mc:Ignorable="d"
        Title="RT-edge サンプルシステム" Height="850" Width="800" Closing="Window_Closing">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="5"/>
            <!--マージン-->
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="130"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="5"/>
            <!--マージン-->
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="5" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="5" />
        </Grid.ColumnDefinitions>
        <Grid Grid.Row="1" Grid.Column="1" Name="grid_chart1">
            <WindowsFormsHost>
                <wfc:Chart Name="chart_sign1" />
            </WindowsFormsHost>
        </Grid>
        <Grid Grid.Row="2" Grid.Column="1" Name="grid_chart2">
            <WindowsFormsHost>
                <wfc:Chart Name="chart_sign2" />
            </WindowsFormsHost>
        </Grid>
        <Grid Grid.Row="3" Grid.Column="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*" />
                <ColumnDefinition Width="3*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <GroupBox Grid.Row="0" Grid.Column="0" Margin="3" >
                <GroupBox.Header>
                    <TextBlock>IOサービス操作 [サービス間メッセージ処理]</TextBlock>
                </GroupBox.Header>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left">
                        <Button Name="btn_IO_S_Start" Content="Start" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_IO_S_Start_Click" />
                        <Button Name="btn_IO_S_Pause" Content="Pause" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_IO_S_Pause_Click" />
                        <Button Name="btn_IO_S_Stop" Content="Stop" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_IO_S_Stop_Click" />
                    </StackPanel>
                    <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Left">
                        <Button Name="btn_IO_M_1" Content="IO Mode 1" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_IO_M_1_Click"  />
                        <Button Name="btn_IO_M_2" Content="IO Mode 2" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_IO_M_2_Click"  />
                        <Button Name="btn_IO_M_3" Content="IO Mode 3" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_IO_M_3_Click"  />
                    </StackPanel>
                    <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Left">
                        <Label Name="lbl_web" Content="WEBアクセス禁止" Width="170" Margin="4" />
                        <Button Name="btn_web" Content="許可" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_web_Click"  />
                    </StackPanel>
                </Grid>
            </GroupBox>
            <GroupBox Grid.Row="0" Grid.Column="1"  Margin="3" >
                <GroupBox.Header>
                    <TextBlock>コレクタサービス操作 [サービス間メッセージ処理]</TextBlock>
                </GroupBox.Header>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left">
                        <Button Name="btn_CLCT_S_Start" Content="Start" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_CLCT_S_Start_Click" />
                        <Button Name="btn_CLCT_S_Pause" Content="Pause" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_CLCT_S_Pause_Click" />
                        <Button Name="btn_CLCT_S_Stop" Content="Stop" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_CLCT_S_Stop_Click" />
                    </StackPanel>
                    <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Left">
                        <Button Name="btn_CLCT_C_Start" Content="Collector Start" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_CLCT_C_Start_Click" />
                        <Button Name="btn_CLCT_C_Stop" Content="Collector Stop" HorizontalAlignment="Left" Height="30" Margin="2" VerticalAlignment="Bottom" Width="85" Click="Btn_CLCT_C_Stop_Click" />
                    </StackPanel>
                </Grid>
            </GroupBox>
            <GroupBox Grid.Row="0" Grid.Column="2"  Margin="3" >
                <GroupBox.Header>
                    <TextBlock>画面描画処理</TextBlock>
                </GroupBox.Header>
                <StackPanel Orientation="Vertical"  HorizontalAlignment="Left">
                    <Button Name="btn_DRAW_Start" Content="開始" HorizontalAlignment="Left" Height="30" Margin="2,15,2,5" VerticalAlignment="Bottom" Width="85" Click="Btn_DRAW_Start_Click" />
                    <Button Name="btn_DRAW_Stop" Content="停止" HorizontalAlignment="Left" Height="30" Margin="2,10,2,2" VerticalAlignment="Bottom" Width="85" Click="Btn_DRAW_Stop_Click" />
                </StackPanel>
            </GroupBox>
        </Grid>
        <Grid Grid.Row="4" Grid.Column="1">
            <GroupBox Grid.Row="0"  Margin="2" >
                <GroupBox.Header>
                    <TextBlock>タグ情報取得</TextBlock>
                </GroupBox.Header>
                <StackPanel Orientation="Horizontal"  HorizontalAlignment="Left">
                    <Label Content="タグ選択" Margin="4" />
                    <ComboBox Name="cmbTags" ItemsSource="{Binding TagName}" Margin="4" Width="150" />
                    <Label Content="型" Margin="4" />
                    <TextBox Name="type" Width="60" Margin="4" IsReadOnly="true" IsEnabled="False" />
                    <Label Content="アドレス" Margin="4" />
                    <TextBox Name="address" Width="110" Margin="4" IsReadOnly="true" IsEnabled="False" />
                    <Label Content="コメント" Margin="4" />
                    <TextBox Name="comment" Width="150" Margin="4" IsReadOnly="true" IsEnabled="False" />
                    <Button Name="btn_TagGet" Content="取得" HorizontalAlignment="Left"  Margin="10,2"  Width="50" Click="Btn_TagGet_Click" />
                </StackPanel>
            </GroupBox>
        </Grid>
    </Grid>
</Window>
