<UserControl x:Class="VIZ.TVP.WMCUP.Module.HttpUrlConfigView"
           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:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
             xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
             xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
             d:Background="White"
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="800">

    <dxmvvm:Interaction.Behaviors>
        <dxmvvm:EventToCommand EventName="Loaded" Command="{Binding Path=LoadedCommand}"></dxmvvm:EventToCommand>
    </dxmvvm:Interaction.Behaviors>

    <Grid>
        <!-- 数据访问设置 -->
        <GroupBox Header="足球赛事配置" Margin="10" Padding="10">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="120"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="50"></RowDefinition>
                    <RowDefinition Height="50"></RowDefinition>
                    <RowDefinition Height="50"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>


                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="50"></RowDefinition>
                    <RowDefinition Height="50"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>

                    <RowDefinition Height="40"></RowDefinition>

                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="40"></RowDefinition>

                </Grid.RowDefinitions>
                <!-- 地址 -->
                <TextBlock Text="主数据连接：" VerticalAlignment="Center" HorizontalAlignment="Center" />
                <TextBlock Text="地址:" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0"></TextBlock>
                <dxe:TextEdit Grid.Column="1" Grid.Row="1" Height="30"
                              EditValue="{Binding Path=Url,Mode=TwoWay}"></dxe:TextEdit>

                <!-- 艾果平台 -->
                <TextBlock Text="应用Id:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Grid.Row="2"></TextBlock>
                <dxe:TextEdit Grid.Column="1" Height="30" Grid.Row="2"
                              EditValue="{Binding Path=AppId,Mode=TwoWay}"></dxe:TextEdit>
                <!-- 地址 -->
                <TextBlock Text="应用Key:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Grid.Row="3"></TextBlock>
                <dxe:TextEdit Grid.Column="1" Height="30" Grid.Row="3"
                              EditValue="{Binding Path=AppKey,Mode=TwoWay}"></dxe:TextEdit>



                <TextBlock Text="备数据连接：" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Center" />

                <!--地址-->
                <TextBlock Text="地址:" Grid.Column="0" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0"></TextBlock>
                <dxe:TextEdit Grid.Column="1" Grid.Row="5" Height="30"
                              EditValue="{Binding Path=BUrl,Mode=TwoWay}"></dxe:TextEdit>

                <!-- 艾果平台 -->
                <TextBlock Text="应用Id:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Grid.Row="6"></TextBlock>
                <dxe:TextEdit Grid.Column="1" Height="30" Grid.Row="6"
                              EditValue="{Binding Path=BAppId,Mode=TwoWay}"></dxe:TextEdit>
                <!-- 地址 -->
                <TextBlock Text="应用Key:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Grid.Row="7"></TextBlock>
                <dxe:TextEdit Grid.Column="1" Height="30" Grid.Row="7"
                              EditValue="{Binding Path=BAppKey,Mode=TwoWay}"></dxe:TextEdit>


                <!-- 地址 --><!--
                <TextBlock Text="赛季配置:" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="8" ></TextBlock>


                <WrapPanel Grid.Column="1" Grid.Row="9" HorizontalAlignment="Left" VerticalAlignment="Center">

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="200"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Text="英超：" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                        <TextBlock Text="赛季：" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                        <dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
                              ItemsSource="{Binding Path=EPCSeasons,Mode=TwoWay}"  SelectedItem="{Binding Path=EPCSelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>



                    </Grid>

                </WrapPanel>

                <WrapPanel Grid.Column="1" Grid.Row="10" HorizontalAlignment="Left" VerticalAlignment="Center">

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="200"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Text="法甲：" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                        <TextBlock Text="赛季：" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                        <dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
                              ItemsSource="{Binding Path=FL1Seasons,Mode=TwoWay}"  SelectedItem="{Binding Path=FL1SelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>



                    </Grid>

                </WrapPanel>

                <WrapPanel Grid.Column="1" Grid.Row="11" HorizontalAlignment="Left" VerticalAlignment="Center">

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="200"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Text="意甲：" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                        <TextBlock Text="赛季：" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                        <dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
                              ItemsSource="{Binding Path=ISASeasons,Mode=TwoWay}"  SelectedItem="{Binding Path=ISASelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>



                    </Grid>

                </WrapPanel>

                <WrapPanel Grid.Column="1" Grid.Row="12" HorizontalAlignment="Left" VerticalAlignment="Center">

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="200"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Text="德甲：" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                        <TextBlock Text="赛季：" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                        <dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
                              ItemsSource="{Binding Path=LIGASeasons,Mode=TwoWay}"  SelectedItem="{Binding Path=LIGASelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>



                    </Grid>

                </WrapPanel>

                <WrapPanel Grid.Column="1" Grid.Row="13" HorizontalAlignment="Left" VerticalAlignment="Center">

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="200"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Text="西甲：" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                        <TextBlock Text="赛季：" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                        <dxe:ComboBoxEdit Grid.Column="2" Height="30" Grid.Row="8" Width="190"
                              ItemsSource="{Binding Path=SLPSeasons,Mode=TwoWay}"  SelectedItem="{Binding Path=SLPSelectSeason,Mode=TwoWay}"></dxe:ComboBoxEdit>



                    </Grid>

                </WrapPanel>-->


                <TextBlock Text="图片地址：" Grid.Row="8" VerticalAlignment="Center" HorizontalAlignment="Center" />

                <!-- 球队地址 -->
                <!--<TextBlock Text="球队图片地址:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Grid.Row="9"></TextBlock>
                <dxe:TextEdit Grid.Column="1" Height="30" Grid.Row="9"
                              EditValue="{Binding Path=TeamsLogo,Mode=TwoWay}"></dxe:TextEdit>-->


                <TextBlock Text="球员图片地址:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Grid.Row="10"></TextBlock>
                <dxe:TextEdit Grid.Column="1" Height="30" Grid.Row="10"
                              EditValue="{Binding Path=PlayersLogo,Mode=TwoWay}"></dxe:TextEdit>


            </Grid>
        </GroupBox>


    </Grid>
</UserControl>

