<Window x:Class="Siger.Middlelayer.License.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:local="clr-namespace:Siger.Middlelayer.License"
        mc:Ignorable="d"
        Title="西格数据License生成工具" 
        Height="600" 
        Width="800" 
        ResizeMode="NoResize" 
        WindowStartupLocation="CenterScreen"
        FontSize="14">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="2*" />
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="2*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="2*"/>
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" Grid.Column="0" 
                   Text="企业Id：" 
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   Margin="10"></TextBlock>
        <TextBox Text="{Binding CompanyId}" Grid.Row="0" Grid.Column="1"
                 Width="200" Height="30" 
                 HorizontalAlignment="Left" 
                 Margin="10" VerticalContentAlignment="Center"></TextBox>
        <TextBlock Grid.Row="0" Grid.Column="2" 
                   Text="项目Id：" 
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   Margin="10"></TextBlock>
        <TextBox Text="{Binding ProjectId}" Grid.Row="0" Grid.Column="3"
                 Width="200" Height="30" 
                 HorizontalAlignment="Left" 
                 Margin="10" VerticalContentAlignment="Center"></TextBox>
        <TextBlock Grid.Row="1" Grid.Column="0" 
                   Text="有效期开始日期：" 
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   Margin="10"></TextBlock>
        <DatePicker Grid.Column="1" HorizontalAlignment="Left" Width="200" Height="30"  Focusable="False"
                    Margin="10" Grid.Row="1" VerticalAlignment="Center"
                    SelectedDate="{Binding StartTime, Mode=TwoWay}" />
        <TextBlock Grid.Row="1" Grid.Column="2" 
                   Text="有效期结束日期：" 
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   Margin="10"></TextBlock>
        <DatePicker Grid.Column="3" HorizontalAlignment="Left" Width="200" Height="30" Focusable="False"
                    Margin="10" Grid.Row="1" VerticalAlignment="Center" SelectedDate="{Binding EndTime, Mode=TwoWay}"/>
        <TextBlock Grid.Row="2" Grid.Column="0" 
                   Text="最大设备数量：" 
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   Margin="10"></TextBlock>
        <TextBox Text="{Binding MachineCount}" Grid.Row="2" Grid.Column="1"
                 Width="200" Height="30" 
                 HorizontalAlignment="Left" 
                 Margin="10" VerticalContentAlignment="Center"></TextBox>
        <TextBlock Grid.Row="2" Grid.Column="2" 
                   Text="最大用户数量：" 
                   VerticalAlignment="Center"
                   HorizontalAlignment="Center"
                   Margin="10"></TextBlock>
        <TextBox Text="{Binding UserCount}" Grid.Row="2" Grid.Column="3" 
                 Width="200" Height="30" 
                 HorizontalAlignment="Left" 
                 Margin="10" VerticalContentAlignment="Center"></TextBox>
        
        <Button Name="BtnExecute" Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="4" 
                Width="100" Height="40" Content="生 成" 
                Command="{Binding ExecuteCommand}"></Button>
        
    </Grid>
</Window>
