private static void OnRunApplied(MyProgrammableBlock programmableBlock, ListReader <TerminalActionParameter> parameters) { string argument = null; var firstParameter = parameters.FirstOrDefault(); if (!firstParameter.IsEmpty && firstParameter.TypeCode == TypeCode.String) { argument = firstParameter.Value as string; } programmableBlock.Run(argument); }
private static void OnRunApplied(MyProgrammableBlock programmableBlock, ListReader<TerminalActionParameter> parameters) { string argument = null; var firstParameter = parameters.FirstOrDefault(); if (!firstParameter.IsEmpty && firstParameter.TypeCode == TypeCode.String) argument = firstParameter.Value as string; programmableBlock.Run(argument); }
private static void OnRunDefaultApplied(MyProgrammableBlock programmableBlock) { programmableBlock.Run(); }
private static void OnRunDefaultApplied(MyProgrammableBlock programmableBlock) { programmableBlock.Run(); }
public MySyncProgrammableBlock(MyProgrammableBlock block) { m_programmableBlock = block; }