private void OnError(XDagErrorCode errorCode) { logger.Error("Got error code:" + errorCode.ToString()); if (logonStatus == LogonStatus.ConnectingPending) { if (errorCode == XDagErrorCode.PasswordIncorrect) { MessageBox.Show(Properties.Strings.Message_PasswordIncorrect, Properties.Strings.Common_MessageTitle); HideStatus(); } } }
public void OnError(int errorCode, string errorMessage) { XDagErrorCode error = XDagErrorHandler.ParseErrorCode(errorCode); this.onError?.Invoke(error); }