using System; using System.Collections.Concurrent; using System.Collections.Generic; using Christie_net.datagear.dg; namespace Christie_net.codegear { public class InputDataGear { public CodeGear cg; public CodeGearManager cgm; private int count; public ConcurrentDictionary> inputValue = new ConcurrentDictionary>(); public InputDataGear(CodeGear cg) { this.cg = cg; } private void FinishInput(CodeGearManager cgm, List commandList) { this.cgm = cgm; count = commandList.Count; if (count == 0) SubmitCG(); foreach (Command cm in commandList) cgm.GetDGM(cm.toDgmName).RunCommand(cm); } public void SetInputs(string key, DataGear dg) { inputValue.AddOrUpdate(key, dg); } } }