Exemplo n.º 1
0
        private void setVMProperty <T>(ExplorerParameterType property, T value)
        {
            ParameterDic pd = new ParameterDic();

            pd.SetValue("{PropertyValue}", value, false);
            _evm.Commands.Execute(UIScriptCommands.ExplorerSetParameter(property, "{PropertyValue}"), pd);
        }
Exemplo n.º 2
0
        private T getVMProperty <T>(ExplorerParameterType property)
        {
            ParameterDic pd = new ParameterDic();

            _evm.Commands.Execute(UIScriptCommands.ExplorerGetParameter(property, "{OutputValue}"), pd);
            return(pd.GetValue <T>("{OutputValue}"));
        }
        public static IScriptCommand ExplorerCopyParameter(string fromExplorerVariable         = "{Explorer}",
                                                           string toExplorerVariable           = "{Explorer1}",
                                                           ExplorerParameterType parameterType = ExplorerParameterType.EnableDrag,
                                                           IScriptCommand nextCommand          = null)
        {
            string copyParameterVariable = "{ExplorerCopyParameter}";

            return(ExplorerGetParameter(fromExplorerVariable, parameterType, copyParameterVariable,
                                        ExplorerSetParameter(toExplorerVariable, parameterType, copyParameterVariable, nextCommand)));
        }
 public static IScriptCommand ExplorerGetParameter(string explorerVariable             = "{Explorer}",
                                                   ExplorerParameterType parameterType = ExplorerParameterType.EnableDrag,
                                                   string valueVariable = null, IScriptCommand nextCommand = null)
 {
     return(new ExplorerParam()
     {
         Direction = ParameterDirection.Get,
         ExplorerKey = explorerVariable,
         ParameterType = parameterType,
         ValueKey = valueVariable,
         NextCommand = (ScriptCommandBase)nextCommand
     });
 }
 public static IScriptCommand ExplorerGetParameter(
     ExplorerParameterType parameterType = ExplorerParameterType.EnableDrag,
     string valueVariable = null, IScriptCommand nextCommand = null)
 {
     return(ExplorerGetParameter("{Explorer}", parameterType, valueVariable, nextCommand));
 }