예제 #1
0
        public static bool CheckValidResponseItem(iPOS.DRO.ResponseItem res)
        {
            if (res.IsError)
            {
                ShowHTTPErrorMessage(res);
                return(false);
            }

            return(true);
        }
예제 #2
0
        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);
        }