添加 MX-PD-盘古 项目文件

将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
Shi.Ji
2026-05-18 11:43:09 +08:00
parent 03632a379d
commit e31d3560bb
739 changed files with 99783 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
using MainShell.DeviceMaintance.Model;
using MainShell.Hardware;
using MainShell.Motion;
using MainShell.Parameter;
using MaxwellFramework.Core.Interfaces;
using MwFramework.ManagerService;
using Stylet;
using System;
using System.Threading;
namespace MainShell.Process
{
public class NeedleZCalibrationWorkflowData
{
public NeedleZCalibrationWorkflowData(string workflowName, int touchCount, bool autoRaiseZ1, CancellationToken cancellationToken, IEventAggregator eventAggregator, HardwareManager hardwareManager, SafeAxisMotion safeAxisMotion, IParameterManager parameterManager, IDeviceIoMonitorService deviceIoMonitorService)
{
if (string.IsNullOrWhiteSpace(workflowName))
{
throw new ArgumentException("workflowName");
}
WorkflowName = workflowName;
TouchCount = touchCount;
AutoRaiseZ1 = autoRaiseZ1;
CancellationToken = cancellationToken;
EventAggregator = eventAggregator;
HardwareManager = hardwareManager ?? throw new ArgumentNullException(nameof(hardwareManager));
SafeAxisMotion = safeAxisMotion ?? throw new ArgumentNullException(nameof(safeAxisMotion));
ParameterManager = parameterManager ?? throw new ArgumentNullException(nameof(parameterManager));
DeviceIoMonitorService = deviceIoMonitorService ?? throw new ArgumentNullException(nameof(deviceIoMonitorService));
}
public string WorkflowName { get; private set; }
public int TouchCount { get; private set; }
public bool AutoRaiseZ1 { get; private set; }
public CancellationToken CancellationToken { get; private set; }
public IEventAggregator EventAggregator { get; private set; }
public HardwareManager HardwareManager { get; private set; }
public SafeAxisMotion SafeAxisMotion { get; private set; }
public IParameterManager ParameterManager { get; private set; }
public IDeviceIoMonitorService DeviceIoMonitorService { get; private set; }
public IParamList GetParameterList()
{
return ParameterManager as IParamList;
}
}
}