步骤下发更改
This commit is contained in:
@@ -2297,6 +2297,45 @@ namespace CapMachine.Wpf.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private DelegateCommand<string> _ProRunSelectedDelete1;
|
||||
/// <summary>
|
||||
/// 删除命令
|
||||
/// </summary>
|
||||
public DelegateCommand<string> ProRunSelectedDelete1
|
||||
{
|
||||
set
|
||||
{
|
||||
_ProRunSelectedDelete1 = value;
|
||||
}
|
||||
get
|
||||
{
|
||||
if (_ProRunSelectedDelete1 == null)
|
||||
{
|
||||
_ProRunSelectedDelete1 = new DelegateCommand<string>((p) => ProRunSelectedDelete1Method(p));
|
||||
}
|
||||
return _ProRunSelectedDelete1;
|
||||
}
|
||||
}
|
||||
|
||||
private void ProRunSelectedDelete1Method(string Par)
|
||||
{
|
||||
if (Par.Contains("1"))
|
||||
{
|
||||
ProRuntimeService.EndProRun();
|
||||
}
|
||||
else if (Par.Contains("2"))
|
||||
{
|
||||
ProRuntimeService.PauseProRun();
|
||||
}
|
||||
else if (Par.Contains("3"))
|
||||
{
|
||||
ProRuntimeService.ContinueProRun();
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private DelegateCommand _GenProPlcCmd;
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user