Пример #1
0
        private void HandleItemAdd(object s, RuleSet.RuleEventArgs e)
        {
            DeviceRule       item = e.Rule;
            MidiInputChannel ic   = item.GetInputChannel(this);

            if (ic != null)
            {
                this.inputchannels.Add(e.Rule.GUID, ic);
                this.AddInputChannel(ic);
            }
        }
Пример #2
0
 private void HandleItemDeleted(object s, RuleSet.RuleEventArgs e)
 {
     this.RemoveInputChannel(this.inputchannels[e.Rule.GUID]);
 }