public static bool CheckValidResponseItem(iPOS.DRO.ResponseItem res) { if (res.IsError) { ShowHTTPErrorMessage(res); return(false); } return(true); }
public static void ShowHTTPErrorMessage(iPOS.DRO.ResponseItem res) { string title = LanguageEngine.GetMessageCaption("ERROR_TITLE_CAPTION", ConfigEngine.Language); XtraMessageBox.Show(string.Format("Request error: {0}\n{1}", res.ErrorCode, res.ErrorMessage), title, MessageBoxButtons.OK, MessageBoxIcon.Error); }