Exemple #1
0
 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);
     }
 }
Exemple #2
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);
         }
     }
 }