public void SetOutput(LedOutputData outdata) { if (!outqueue.ContainsKey(outdata.Priority)) outqueue.Add(outdata.Priority, outdata); else { outqueue.Remove(outdata.Priority); outqueue.Add(outdata.Priority, outdata); } Output(); }
public void RemoveOutput(LedOutputData data) { if (this.outqueue.ContainsKey(data.Priority)) outqueue.Remove(data.Priority); Output(); }