using athosRT.Devices.EFEM.ABS; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace athosRT.Devices.EFEM.Task { public class SetEventTask : CheckImp, ITask { public SetEventTask() => this.HasInfoMessage = false; public bool Execute(out string result, params string[] args) { string str = "System"; EfemEventType result1; if (!Enum.TryParse(args[0], out result1)) { result = "PARAM_NG"; return false; } EfemEventValue result2; if (!Enum.TryParse(args[1], out result2)) { result = "PARAM_NG"; return false; } if (!this.Check(str, out result) || !this.Check(str, out result)) return false; ((SystemServerModule)this.GetEntity(str)).SetEvent(result1, result2); return true; } public bool? Monitor(out string result, params string[] args) { result = string.Empty; return new bool?(true); } } }