<UserControl x:Class="DaifugouGui.DaifugouSimple"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:card="clr-namespace:CardGame;assembly=Daifugou"
    xmlns:gui="clr-namespace:DaifugouGui"
    Height="600" Width="600">
    <UserControl.Resources>
        <gui:CardToImage x:Key="cardToImage"/>

        <DataTemplate DataType="{x:Type card:Card}">
            <CheckBox Content="{Binding Converter={StaticResource cardToImage}}"/>
        </DataTemplate>
    </UserControl.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="20"/>
            <RowDefinition Height="20"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>

        <Label>場札</Label>
        <CheckBox Name="label1" Grid.Column="1">プレーヤー1</CheckBox>
        <CheckBox Name="label2" Grid.Column="2">プレーヤー2</CheckBox>
        <CheckBox Name="label3" Grid.Column="3">プレーヤー3</CheckBox>
        <CheckBox Name="label4" Grid.Column="4">プレーヤー4</CheckBox>

        <ListBox Name="table" Grid.Row="1" Grid.Column="0"/>
        <ListBox Name="deck1" Grid.Row="1" Grid.Column="1"/>
        <ListBox Name="deck2" Grid.Row="1" Grid.Column="2"/>
        <ListBox Name="deck3" Grid.Row="1" Grid.Column="3"/>
        <ListBox Name="deck4" Grid.Row="1" Grid.Column="4"/>

        <Button Name="submit1" Grid.Row="2" Grid.Column="1">出す</Button>
        <Button Name="submit2" Grid.Row="2" Grid.Column="2">出す</Button>
        <Button Name="submit3" Grid.Row="2" Grid.Column="3">出す</Button>
        <Button Name="submit4" Grid.Row="2" Grid.Column="4">出す</Button>

        <Button Name="pass1" Grid.Row="3" Grid.Column="1">パス</Button>
        <Button Name="pass2" Grid.Row="3" Grid.Column="2">パス</Button>
        <Button Name="pass3" Grid.Row="3" Grid.Column="3">パス</Button>
        <Button Name="pass4" Grid.Row="3" Grid.Column="4">パス</Button>

        <Button Name="history" Grid.Row="5" Grid.Column="1">履歴確認</Button>
        
        <Button Name="auto" Grid.Row="5" Grid.Column="2">auto</Button>

        <Button Name="startButton" Grid.Row="5" Grid.Column="4">ゲーム開始</Button>

        <Label Name="status" Grid.Row="4" Grid.ColumnSpan="5"/>
    </Grid>
</UserControl>
