plcsharp/PLCSharpWpf/VVMs/MotionController/Config/ControllerIO.xaml.cs
tfarcraw 6a9862bbbc 合并 IO 配置面板:SmcIO/EmcIO → 通用 ControllerIO
- 删除 Config/SmcIO 与 Config/EmcIO(两面板仅 ON/OFF 按钮和列宽不同,ON/OFF 调的 DQON/DQOFF 两种 SDK 都支持,非板卡差异)
- 新增 Config/ControllerIO(保留 ON/OFF 手动输出按钮,两种板卡通用)
- ControllersModel: Config 命令去掉 switch(Type) 分支,Type≠Undefined 时直接创建 ControllerIO
- Controller: 连接循环补 SDK==null 保护;XAML 按钮改名 配置→配置IO
2026-10-16 03:56:48 +08:00

26 lines
652 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Windows;
using System.Windows.Controls;
namespace PLCSharp.VVMs.MotionController.Config
{
/// <summary>
/// ControllerIO.xaml 的交互逻辑(通用IO面板,SMC/EMC 板卡通用)
/// </summary>
public partial class ControllerIO : UserControl
{
/// <summary>
/// ControllerIO
/// </summary>
public ControllerIO()
{
InitializeComponent();
}
private void DataGrid_Unloaded(object sender, RoutedEventArgs e)
{
var dataGrid = sender as DataGrid;
dataGrid.CommitEdit(DataGridEditingUnit.Row, true);
}
}
}