alielie
2025-03-03 1fca2167068e9ef2c079ec742f20313fc6697ab1
HMI.SettingControl/SystemConfig.xaml
@@ -25,10 +25,12 @@
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <GroupBox Header="程序设置" Padding="10">
        <GroupBox Header="基础设置" Padding="10">
            <StackPanel>
                <pu:FormGroup Header="Logo" GroupName="MyFormGroup">
                    <TextBox Text="{Binding LogoPath}"/>
@@ -39,7 +41,20 @@
                </pu:FormGroup>
            </StackPanel>
        </GroupBox>
        <DockPanel Grid.Row="1" LastChildFill="False">
        <GroupBox Grid.Row="1"  Header="PLC设置" Padding="10">
            <StackPanel>
                <pu:FormGroup Header="PLC Ip" GroupName="MyFormGroup">
                    <TextBox Text="{Binding PlcIp}"/>
                </pu:FormGroup>
                <pu:FormGroup Header="是否启用" GroupName="MyFormGroup">
                    <CheckBox IsChecked="{Binding PlcEnabled,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
                </pu:FormGroup>
            </StackPanel>
        </GroupBox>
        <DockPanel Grid.Row="3" LastChildFill="False">
            <Button DockPanel.Dock="Right" Style="{StaticResource PrimaryButton}" Click="Button_Click">保存</Button>
        </DockPanel>
    </Grid>