public GroupController(DMXFixture device) { map = new Dictionary <string, List <int> >(); level = new Dictionary <string, int>(); foreach (KeyValuePair <string, int> channelFunction in device.getChannelFunctions) { map.Add(channelFunction.Key, new List <int>(device.getDmxAddress + channelFunction.Value)); level.Add(channelFunction.Key, 0); } }
public void AddSelected(DMXFixture device) { foreach (KeyValuePair <string, int> channelFunction in device.getChannelFunctions) { if (map.ContainsKey(channelFunction.Key)) { map[channelFunction.Key].Add(device.getDmxAddress + channelFunction.Value); } else { map.Add(channelFunction.Key, new List <int>() { device.getDmxAddress + channelFunction.Value }); level.Add(channelFunction.Key, 0); } } }