<Window x:Class="FLY.Thick.FilmCasting.UI.Server.WdSetup"
        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:local="clr-namespace:FLY.Thick.FilmCasting.UI.Server"
        mc:Ignorable="d"
        Title="WdSetup" MinHeight="200" MinWidth="400" SizeToContent="WidthAndHeight"  >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Themes/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <StackPanel>
            <StackPanel Orientation="Horizontal" Margin="{StaticResource ControlMargin}" >
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="服务地址"/>
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding Addr}"/>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="AD盒地址"/>
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding FlyAdAddr}"/>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="{StaticResource ControlMargin}" >
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="数据库容量(月)"/>
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding DbKeepMonth}"/>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="数据库路径"/>
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding DbDirPath}"/>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="{StaticResource ControlMargin}">
                <Button Style="{StaticResource Styles.Button.Square.Accent2}" 
                        Content="确定" Command="{Binding OkCmd}"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
