protected virtual void OnConnectionExceptionFired(object sender, EventArgs <Exception> e) { //isClosed = true; Cursor = Cursors.Default; var action = new ConnectionExceptionAction(e.First); action.Perform(); }
void Connection_ExceptionFired(object sender, EventArgs <Exception> e) { Cursor = Cursors.Default; if (FormHelper.ActiveForm != null) { FormHelper.ActiveForm.Enabled = true; } SetSignImageIndex(sender); ActionHelper.OnDisconnected(true); if (!_IsDisconnection) { var action = new ConnectionExceptionAction(e.First); action.Perform(); } _IsDisconnection = false; }