Пример #1
0
 public SensLogonInterop()
 {
     registered = false;
     EventSystemRegistrar.SubscribeToEvents(SubscriptionViewerDesc, SubscriptionViewerName,
                                            SubscriptionViewerID, this, typeof(ISensLogon));
     registered = true;
 }
Пример #2
0
 private void Deactivate()
 {
     if (registered)
     {
         EventSystemRegistrar.UnsubscribeToEvents(SubscriptionViewerID);
         registered = false;
     }
 }