示例#1
0
        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();
        }
示例#2
0
 public void RemoveOutput(LedOutputData data)
 {
     if (this.outqueue.ContainsKey(data.Priority))
         outqueue.Remove(data.Priority);
     Output();
 }