Beispiel #1
0
        public void UnRegisterNotifications()
        {
            uint returnCode = FireDTVAPI.FS_UnregisterNotifications(Handle);

            if ((FireDTVConstants.FireDTVStatusCodes)returnCode != FireDTVConstants.FireDTVStatusCodes.Success)
            {
                throw new FireDTVException((FireDTVConstants.FireDTVStatusCodes)returnCode, "Unable to unRegister Notifiations");
            }
            _notificationRegistered = false;
        }
Beispiel #2
0
 internal void UnRegisterNotifications(uint widowHandle)
 {
     if (NotificationsRegistered)
     {
         uint returnCode = FireDTVAPI.FS_UnregisterNotifications(widowHandle);
         if ((FireDTVConstants.FireDTVStatusCodes)returnCode != FireDTVConstants.FireDTVStatusCodes.Success)
         {
             throw new FireDTVException((FireDTVConstants.FireDTVStatusCodes)returnCode,
                                        "Unable to unRegister Notifiations");
         }
         NotificationsRegistered = false;
     }
 }