Ejemplo n.º 1
0
     private void AddBinding(
   MidiCommandType commandType,
   int index,
   Binding.bindingCallback callback
 )
     {
         Binding binding = new Binding();
           binding.key = new BindingKey(commandType, index);
           binding.callback = callback;
           if (!this.bindings.ContainsKey(binding.key)) {
         this.bindings.Add(binding.key, new List<Binding>());
           }
           this.bindings[binding.key].Add(binding);
     }
Ejemplo n.º 2
0
     private void AddBinding(
   MidiCommandType commandType,
   Binding.bindingCallback callback
 )
     {
         this.AddBinding(commandType, -1, callback);
     }