Beispiel #1
0
        protected override void InternalExecute(INode sender, EventParams paramsValue)
        {
            // Fetch the data params from the clipboard and deserialize them
            DataParams localParamsValue =
                DataParamSerializer.SerializableParamDataToDataParams
                (
                    HostNode.Session.DataSession.UtilityProcess,
                    (SerializableParamData)Clipboard.GetData(ClipboardFormatName)
                );

            // Change the params to be out
            foreach (DataParam param in localParamsValue)
            {
                param.Modifier = Modifier.Out;
            }

            // Apply the params
            BaseArgument.ApplyArguments(this, localParamsValue);
        }
Beispiel #2
0
        protected override void InternalExecute(INode sender, EventParams paramsValue)
        {
            // Collect the params
            DataParams localParamsValue = BaseArgument.CollectArguments(this);

            // Serialize the params and place them on the clipboard
            if (localParamsValue != null)
            {
                Clipboard.SetData
                (
                    ClipboardFormatName,
                    DataParamSerializer.DataParamsToSerializableParamData
                    (
                        HostNode.Session.DataSession.UtilityProcess,
                        localParamsValue
                    )
                );
            }
        }