Ejemplo n.º 1
0
 private void OnRuleSetDeleted(object o, MidiInformation.RuleSetEventArgs rs)
 {
     if (this.RuleSetDeleted != null)
     {
         this.RuleSetDeleted(this, rs);
     }
     if (rs.rs != null && rs.rs.InputLayer != null)
     {
         InputLayerManager.getInstance().deregisterInputLayer(rs.rs.InputLayer);
         rs.rs.Dispose();
     }
 }
Ejemplo n.º 2
0
 private void OnRuleSetAdded(object o, MidiInformation.RuleSetEventArgs rs)
 {
     if (rs.rs != null && rs.rs.InputLayer != null)
     {
         try
         {
             InputLayerManager.getInstance().registerInputLayer(rs.rs.InputLayer);
         }
         catch (Exception x)
         {
             Debug.WriteLine(x);
         }
         if (this.RuleSetAdded != null)
         {
             this.RuleSetAdded(this, rs);
         }
     }
 }