/// <summary> /// Close application /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnClose(object sender, EventArgs e) { _messageCommunication.UnRegisterCommunicationFilter(_obj); _messageCommunication.UnRegisterCommunicationFilter(_obj3); VideoOS.Platform.SDK.Environment.RemoveAllServers(); Close(); }
public override void Close() { _messageCommunication.ConnectionStateChangedEvent -= new EventHandler(_messageCommunication_ConnectionStateChangedEvent); _messageCommunication.UnRegisterCommunicationFilter(_obj1); _messageCommunication.UnRegisterCommunicationFilter(_obj2); _messageCommunication.UnRegisterCommunicationFilter(_obj3); _messageCommunication.UnRegisterCommunicationFilter(_obj4); _obj1 = _obj2 = _obj3 = _obj4 = null; }
/// <summary> /// Called by the Environment when the user log's out. /// You should close all remote sessions and flush cache information, as the /// user might logon to another server next time. /// </summary> public override void Close() { ClientControl.Instance.NewImageViewerControlEvent -= new ClientControl.NewImageViewerControlHandler(NewImageViewerControlEvent); if (_messageCommunication != null) { _messageCommunication.UnRegisterCommunicationFilter(_obj1); _messageCommunication.UnRegisterCommunicationFilter(_obj2); _messageCommunication = null; } timerRemoveOverlays.Stop(); timerRemoveOverlays.Elapsed -= new ElapsedEventHandler(TimedRefresh); }
private void unsubscribeAlarms() { if (_obj1 != null) { _messageCommunication.UnRegisterCommunicationFilter(_obj1); _obj1 = null; } if (_obj2 != null) { _messageCommunication.UnRegisterCommunicationFilter(_obj2); _obj2 = null; } }
private void Dispose(bool disposing) { if (disposing) { if (_reloadTimer != null) { _reloadTimer.Dispose(); _reloadTimer = null; _messageCommunication.UnRegisterCommunicationFilter(_obj); MessageCommunicationManager.Stop(_serverId); } } }
public void Close() { _messageCommunication.UnRegisterCommunicationFilter(_systemConfigurationChangedIndicationRefefence); MessageCommunicationManager.Stop(EnvironmentManager.Instance.MasterSite.ServerId); }
private void button1_Click(object sender, EventArgs e) { DialogResult = DialogResult.Cancel; _client.UnRegisterCommunicationFilter(_msgObject); Close(); }