public void SetLevel(int channel, byte value) { if (universe.DmxData[channel] != value) { universe.SetDmx(channel, value); } }
void socket_NewPacket(object sender, NewPacketEventArgs <StreamingAcnDmxPacket> e) { StreamingAcnDmxPacket dmxPacket = e.Packet as StreamingAcnDmxPacket; if (dmxPacket != null) { receiveData.SetDmx(dmxPacket.Dmx.Data); } }