示例#1
0
    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);
    }
示例#2
0
 public FlowGroupData(FlowGroupKind target)
 {
     this.target = target;
     this.Reset();
 }