You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
147 lines
8.1 KiB
147 lines
8.1 KiB
|
4 weeks ago
|
<Window x:Class="leak_test_project.Views.CommunicationWindow"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
Title="통신 설정 (Communication Settings)"
|
||
|
|
SizeToContent="Height" Width="750" MaxHeight="700"
|
||
|
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize" ShowInTaskbar="False"
|
||
|
|
Background="#F4F6F7">
|
||
|
|
|
||
|
|
<Window.Resources>
|
||
|
|
<!-- Updated Premium Legacy Styles for Settings -->
|
||
|
|
<Style x:Key="ParamHeaderBorder" TargetType="Border">
|
||
|
|
<Setter Property="Background" Value="#34495E"/>
|
||
|
|
<Setter Property="BorderBrush" Value="#2C3E50"/>
|
||
|
|
<Setter Property="BorderThickness" Value="1"/>
|
||
|
|
<Setter Property="Width" Value="140"/>
|
||
|
|
<Setter Property="Height" Value="45"/>
|
||
|
|
<Setter Property="Padding" Value="5"/>
|
||
|
|
</Style>
|
||
|
|
<Style x:Key="ParamHeaderLabel" TargetType="TextBlock">
|
||
|
|
<Setter Property="Foreground" Value="White"/>
|
||
|
|
<Setter Property="FontSize" Value="14"/>
|
||
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||
|
|
<Setter Property="TextAlignment" Value="Center"/>
|
||
|
|
</Style>
|
||
|
|
<Style x:Key="ParamValueBorder" TargetType="Border">
|
||
|
|
<Setter Property="Background" Value="White"/>
|
||
|
|
<Setter Property="BorderBrush" Value="#BDC3C7"/>
|
||
|
|
<Setter Property="BorderThickness" Value="0,1,1,1"/>
|
||
|
|
<Setter Property="Width" Value="180"/>
|
||
|
|
<Setter Property="Height" Value="45"/>
|
||
|
|
</Style>
|
||
|
|
<Style x:Key="FooterButton" TargetType="Button">
|
||
|
|
<Setter Property="Width" Value="120"/>
|
||
|
|
<Setter Property="Height" Value="45"/>
|
||
|
|
<Setter Property="Margin" Value="15,0"/>
|
||
|
|
<Setter Property="Background" Value="#E5E8E8"/>
|
||
|
|
<Setter Property="BorderBrush" Value="#95A5A6"/>
|
||
|
|
<Setter Property="BorderThickness" Value="1.5"/>
|
||
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
||
|
|
<Setter Property="FontSize" Value="14"/>
|
||
|
|
</Style>
|
||
|
|
</Window.Resources>
|
||
|
|
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="60"/> <!-- Title Row -->
|
||
|
|
<RowDefinition Height="*"/> <!-- Content Row -->
|
||
|
|
<RowDefinition Height="85"/> <!-- Footer Row -->
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<!-- Title Bar -->
|
||
|
|
<Border Grid.Row="0" Background="#2C3E50" BorderBrush="#1A252F" BorderThickness="0,0,0,2">
|
||
|
|
<TextBlock Text="COMMUNICATION SETTINGS" Foreground="White" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- Main Content with ScrollViewer -->
|
||
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
|
||
|
|
<Grid Margin="20">
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
|
||
|
|
<!-- LEFT COLUMN: ZMDI SETTINGS -->
|
||
|
|
<StackPanel Grid.Column="0" Margin="10,0">
|
||
|
|
<TextBlock Text="[ ZMDI ID 센서 설정 ]" FontSize="16" FontWeight="Bold" Foreground="#2E86C1" Margin="0,0,0,15"/>
|
||
|
|
|
||
|
|
<!-- ZMDI BaudRate -->
|
||
|
|
<StackPanel Orientation="Horizontal" Margin="0,8">
|
||
|
|
<Border Style="{StaticResource ParamHeaderBorder}">
|
||
|
|
<TextBlock Text="ZMDI BaudRate" Style="{StaticResource ParamHeaderLabel}"/>
|
||
|
|
</Border>
|
||
|
|
<Border Style="{StaticResource ParamValueBorder}">
|
||
|
|
<ComboBox x:Name="cbZmdiBaudRate" SelectedIndex="1" Width="178" BorderThickness="0" VerticalContentAlignment="Center" FontSize="16" FontWeight="Bold">
|
||
|
|
<ComboBoxItem Content="9600"/>
|
||
|
|
<ComboBoxItem Content="19200"/>
|
||
|
|
<ComboBoxItem Content="38400"/>
|
||
|
|
<ComboBoxItem Content="115200"/>
|
||
|
|
</ComboBox>
|
||
|
|
</Border>
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
<!-- Left Port -->
|
||
|
|
<StackPanel Orientation="Horizontal" Margin="0,5">
|
||
|
|
<Border Style="{StaticResource ParamHeaderBorder}">
|
||
|
|
<TextBlock Text="Left Port" Style="{StaticResource ParamHeaderLabel}"/>
|
||
|
|
</Border>
|
||
|
|
<Border Style="{StaticResource ParamValueBorder}">
|
||
|
|
<ComboBox x:Name="cbLeftPort" Width="178" BorderThickness="0" VerticalContentAlignment="Center" FontSize="16" FontWeight="Bold"/>
|
||
|
|
</Border>
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
<!-- Right Port -->
|
||
|
|
<StackPanel Orientation="Horizontal" Margin="0,5">
|
||
|
|
<Border Style="{StaticResource ParamHeaderBorder}">
|
||
|
|
<TextBlock Text="Right Port" Style="{StaticResource ParamHeaderLabel}"/>
|
||
|
|
</Border>
|
||
|
|
<Border Style="{StaticResource ParamValueBorder}">
|
||
|
|
<ComboBox x:Name="cbRightPort" Width="178" BorderThickness="0" VerticalContentAlignment="Center" FontSize="16" FontWeight="Bold"/>
|
||
|
|
</Border>
|
||
|
|
</StackPanel>
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
<!-- RIGHT COLUMN: LEAK SENSOR (SENTINEL) SETTINGS -->
|
||
|
|
<StackPanel Grid.Column="1" Margin="10,0">
|
||
|
|
<TextBlock Text="[ 리크 센서 설정 ]" FontSize="16" FontWeight="Bold" Foreground="#2E86C1" Margin="0,0,0,15"/>
|
||
|
|
|
||
|
|
<!-- Sensor BaudRate -->
|
||
|
|
<StackPanel Orientation="Horizontal" Margin="0,8">
|
||
|
|
<Border Style="{StaticResource ParamHeaderBorder}">
|
||
|
|
<TextBlock Text="Sensor BaudRate" Style="{StaticResource ParamHeaderLabel}"/>
|
||
|
|
</Border>
|
||
|
|
<Border Style="{StaticResource ParamValueBorder}">
|
||
|
|
<ComboBox x:Name="cbSensorBaudRate" SelectedIndex="0" Width="178" BorderThickness="0" VerticalContentAlignment="Center" FontSize="16" FontWeight="Bold">
|
||
|
|
<ComboBoxItem Content="9600"/>
|
||
|
|
<ComboBoxItem Content="19200"/>
|
||
|
|
<ComboBoxItem Content="38400"/>
|
||
|
|
<ComboBoxItem Content="115200"/>
|
||
|
|
</ComboBox>
|
||
|
|
</Border>
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
<!-- Sensor Port -->
|
||
|
|
<StackPanel Orientation="Horizontal" Margin="0,5">
|
||
|
|
<Border Style="{StaticResource ParamHeaderBorder}">
|
||
|
|
<TextBlock Text="Sensor Port" Style="{StaticResource ParamHeaderLabel}"/>
|
||
|
|
</Border>
|
||
|
|
<Border Style="{StaticResource ParamValueBorder}">
|
||
|
|
<ComboBox x:Name="cbSensorPort" Width="178" BorderThickness="0" VerticalContentAlignment="Center" FontSize="16" FontWeight="Bold"/>
|
||
|
|
</Border>
|
||
|
|
</StackPanel>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</ScrollViewer>
|
||
|
|
|
||
|
|
<!-- Footer Buttons -->
|
||
|
|
<Border Grid.Row="2" Background="#D5DBDB" BorderBrush="#AEB6BF" BorderThickness="0,2,0,0">
|
||
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||
|
|
<Button x:Name="btnSave" Content="설정 저장" Style="{StaticResource FooterButton}" Click="BtnSave_Click" Background="#D4EFDF" BorderBrush="#27AE60"/>
|
||
|
|
<Button x:Name="btnClose" Content="닫기" Style="{StaticResource FooterButton}" Click="BtnClose_Click"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
</Grid>
|
||
|
|
</Window>
|