public FlowGroupData GetOrSetFlowData(FlowGroupKind flowGroupKind) { var flowGroupElement = FlowGroupsData .FirstOrDefault(x => x.target == flowGroupKind); if (flowGroupElement == null) { flowGroupElement = new FlowGroupData(flowGroupKind); FlowGroupsData.Add(flowGroupElement); } return(flowGroupElement); }
public FlowGroupData(FlowGroupKind target) { this.target = target; this.Reset(); }