Example #1
0
 private void ConnectBefore(IDomain domain, IComponentEvent beforeEvent)
 {
     if (beforeEvent != null)
     {
         IObject      Object      = null;
         IObjectEvent ObjectEvent = null;
         beforeEvent.Connect(domain, ref Object, ref ObjectEvent);
         BeforeObject      = Object;
         BeforeObjectEvent = ObjectEvent;
     }
     else
     {
         BeforeObject      = null;
         BeforeObjectEvent = null;
     }
 }
Example #2
0
 private void ConnectAfter(IDomain domain, IComponentEvent afterEvent)
 {
     if (afterEvent != null)
     {
         IObject      Object      = null;
         IObjectEvent ObjectEvent = null;
         afterEvent.Connect(domain, ref Object, ref ObjectEvent);
         AfterObject      = Object;
         AfterObjectEvent = ObjectEvent;
     }
     else
     {
         AfterObject      = null;
         AfterObjectEvent = null;
     }
 }