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); } }
public bool ReceiveComponentVariable(IComponentVariableSource component) { string parentId = valueStore.GetRootComponentId(data.id); string otherParentId = valueStore.GetRootComponentId(component.GetData().id); if (parentId == otherParentId) { return(false); } return(this.ReceiveComponentVariable(component, data)); }
public bool ReceiveComponentVariable(IComponentVariableSource component) { return(this.ReceiveComponentVariable(component, data)); }
public bool ReceiveComponentVariable(IComponentVariableSource component, AbstractComponentData selfData) { AbstractComponentData receivedData = component.GetData(); return(this.ReceiveComponentData(receivedData, selfData)); }