| | |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="Auto"/> |
| | | </Grid.RowDefinitions> |
| | | |
| | | <!-- 设备基本信息 --> |
| | |
| | | </Grid> |
| | | </GroupBox> |
| | | |
| | | <!-- 执行位置(V3.0 §05) --> |
| | | <GroupBox Grid.Row="1" Header="执行位置" FontWeight="SemiBold" Margin="0,0,0,12"> |
| | | <Grid Margin="8"> |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition Width="100"/> |
| | | <ColumnDefinition Width="*"/> |
| | | <ColumnDefinition Width="100"/> |
| | | <ColumnDefinition Width="*"/> |
| | | </Grid.ColumnDefinitions> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="36"/> |
| | | <RowDefinition Height="36"/> |
| | | <RowDefinition Height="36"/> |
| | | </Grid.RowDefinitions> |
| | | |
| | | <TextBlock Grid.Row="0" Grid.Column="0" Text="执行模式 *" VerticalAlignment="Center" Style="{StaticResource ListTableTextBlock}"/> |
| | | <StackPanel Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="3" Orientation="Horizontal" VerticalAlignment="Center" |
| | | dp:StackPanelHelper.ChildSpace="16" Margin="4,0"> |
| | | <RadioButton x:Name="rbLocal" Content="本地仪器 (Local 直连)" GroupName="ExecMode" IsChecked="True" |
| | | Checked="ExecMode_Changed" VerticalAlignment="Center"/> |
| | | <RadioButton x:Name="rbBroker" Content="共享仪器 (Broker 代理)" GroupName="ExecMode" |
| | | Checked="ExecMode_Changed" VerticalAlignment="Center"/> |
| | | </StackPanel> |
| | | |
| | | <TextBlock Grid.Row="1" Grid.Column="0" Text="仲裁域 *" VerticalAlignment="Center" Style="{StaticResource ListTableTextBlock}"/> |
| | | <ComboBox Grid.Row="1" Grid.Column="1" x:Name="cbAuthority" VerticalAlignment="Center" Margin="4,0" |
| | | SelectionChanged="CbAuthority_SelectionChanged"/> |
| | | |
| | | <TextBlock Grid.Row="1" Grid.Column="2" Text="访问策略" VerticalAlignment="Center" Style="{StaticResource ListTableTextBlock}"/> |
| | | <TextBox Grid.Row="1" Grid.Column="3" x:Name="tbAccessPolicy" VerticalAlignment="Center" IsReadOnly="True" |
| | | Style="{StaticResource EditorTextBoxStyle}" Margin="4,0"/> |
| | | |
| | | <!-- Broker 模式专属字段:默认隐藏 --> |
| | | <Grid Grid.Row="2" Grid.ColumnSpan="4" x:Name="spBroker" Visibility="Collapsed"> |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition Width="100"/> |
| | | <ColumnDefinition Width="*"/> |
| | | <ColumnDefinition Width="100"/> |
| | | <ColumnDefinition Width="*"/> |
| | | </Grid.ColumnDefinitions> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="36"/> |
| | | <RowDefinition Height="36"/> |
| | | </Grid.RowDefinitions> |
| | | |
| | | <TextBlock Grid.Row="0" Grid.Column="0" Text="BrokerId *" VerticalAlignment="Center" Style="{StaticResource ListTableTextBlock}"/> |
| | | <ComboBox Grid.Row="0" Grid.Column="1" x:Name="cbBrokerId" VerticalAlignment="Center" Margin="4,0"/> |
| | | |
| | | <TextBlock Grid.Row="0" Grid.Column="2" Text="宿主进程" VerticalAlignment="Center" Style="{StaticResource ListTableTextBlock}"/> |
| | | <TextBox Grid.Row="0" Grid.Column="3" x:Name="tbOwnerProcessId" VerticalAlignment="Center" IsReadOnly="True" |
| | | Style="{StaticResource EditorTextBoxStyle}" Margin="4,0" |
| | | pu:TextBoxHelper.Watermark="Broker 宿主 PID(MVP 占位当前进程)"/> |
| | | |
| | | <TextBlock Grid.Row="1" Grid.Column="0" Text="物理会话键 *" VerticalAlignment="Center" Style="{StaticResource ListTableTextBlock}"/> |
| | | <ComboBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" x:Name="cbSessionKey" VerticalAlignment="Center" |
| | | IsEditable="True" Margin="4,0" |
| | | pu:TextBoxHelper.Watermark="由端点规范化的固定字符串,如 can/CAN_BUS_1/main"/> |
| | | </Grid> |
| | | </Grid> |
| | | </GroupBox> |
| | | |
| | | <!-- 通道列表 --> |
| | | <GroupBox Grid.Row="1" Header="通道列表" FontWeight="SemiBold" Margin="0,0,0,12"> |
| | | <GroupBox Grid.Row="2" Header="通道列表" FontWeight="SemiBold" Margin="0,0,0,12"> |
| | | <Grid Margin="8"> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="Auto"/> |
| | |
| | | </GroupBox> |
| | | |
| | | <!-- 底部按钮 --> |
| | | <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" dp:StackPanelHelper.ChildSpace="10" Margin="0,12,0,0"> |
| | | <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right" dp:StackPanelHelper.ChildSpace="10" Margin="0,12,0,0"> |
| | | <Button x:Name="saveBtn" Click="SaveBtn_Click" Content="保存" |
| | | Style="{StaticResource AddBtn}" Width="90"/> |
| | | <Button x:Name="cancelBtn" Click="CancelBtn_Click" Content="取消" |