protected override void OnStop() { _Send = null; if (_Notificator != null) { _Notificator.Dispose(); _Notificator = null; } base.OnStop(); }
protected override void OnStart() { if (_Notificator != null) { _Notificator.Dispose(); _Notificator = null; } _Notificator = new MultiMediaNotificationListener(); _Notificator.OnChange += OnChange; _Send = _Notificator.GetConnected(); }