private void cmdClose_Click(object sender, EventArgs e) { m_ClientTerminal.Close(); cmdConnect.Enabled = true; cmdClose.Enabled = false; }
private void CommunicationObjectOnClosed(object clientHandler, EventArgs eventArgs) { try { DisconnectFromServer(); _clientTerminal.Close(); Logger.Debug("Client Unsubscribed because of fault.", OType.FullName, "CommunicationObjectOnClosed"); } catch (Exception exception) { Logger.Error(exception, OType.FullName, "CommunicationObjectOnClosed"); } }