コード例 #1
0
        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);
        }
コード例 #2
0
 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);
 }
コード例 #3
0
 private static void OnRunDefaultApplied(MyProgrammableBlock programmableBlock)
 {
     programmableBlock.Run();
 }
コード例 #4
0
 private static void OnRunDefaultApplied(MyProgrammableBlock programmableBlock)
 {
     programmableBlock.Run();
 }