37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
// ********************************************************************************
|
|
// 文件名字: HSMSConnectedHandler
|
|
// 文件描述: HSMSConnectedHandler
|
|
// 开发人员: Michael
|
|
// 创建时间: 2019/11/8 0:08
|
|
//
|
|
// 更新历史:
|
|
// + 创建 HSMSConnectedHandler.cs 文件. by Michael @2019/11/8 0:08
|
|
// ********************************************************************************
|
|
using ARI.EAP.HOST;
|
|
using ARI.EAP.HOST.MQ;
|
|
using ARI.EAP.HOST.MQ.body;
|
|
using ARI.EAP.HOST.SRD;
|
|
using Glorysoft.SECS.EQP.Common;
|
|
using Glorysoft.SECSwell;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Glorysoft.SECS.EQP.Handlers
|
|
{
|
|
public class HSMSConnectedHandler : ISECSMessageHandler
|
|
{
|
|
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
|
|
{
|
|
SimulatorInfo.Instance.IsConnected = true;
|
|
Global.MF.ConnectStatusSet(true);
|
|
Scenario scenario = SimulatorInfo.Instance.Scenarios.Scenarios.FirstOrDefault(sc => sc.Name == "Init");
|
|
scenario.CurrentStep = 0;
|
|
scenario.ExecuteNextStep();
|
|
}
|
|
}
|
|
} |