public bool ReceiveComponentVariable(IComponentVariableSource component)
 {
     if (!(component.GetData() is LoopParameterData))
     {
         string parentId      = valueStore.GetRootComponentId(data.id);
         string otherParentId = valueStore.GetRootComponentId(component.GetData().id);
         if (parentId == otherParentId)
         {
             return(false);
         }
     }
     return(this.ReceiveComponentVariable(component, data));
 }
Ejemplo n.º 2
0
        public bool ReceiveComponentVariable(IComponentVariableSource component)
        {
            this.Focus();

            AbstractComponentData receivedData = component.GetData();

            if (receivedData == null)
            {
                return(false);
            }

            if (receivedData is IExpressionData)
            {
                if (textTarget.IsFocused)
                {
                    targetData      = receivedData as IExpressionData;
                    textTarget.Text = receivedData.autoLabel;
                }
                else if (textVariable.IsFocused)
                {
                    variableData      = receivedData as IExpressionData;
                    textVariable.Text = receivedData.autoLabel;
                }

                return(true);
            }
            else
            {
                // only receive IExpressionData, other type of data cannot have value
                return(false);
            }
        }
Ejemplo n.º 3
0
        public bool ReceiveComponentVariable(IComponentVariableSource component, AbstractComponentData selfData)
        {
            AbstractComponentData receivedData = component.GetData();

            return(this.ReceiveComponentData(receivedData, selfData));
        }