Exemple #1
0
        private void ShowCoinApiErrorNotification(IApiContext apiContext, Exception ex)
        {
            string siteUrl = apiContext.GetInfoUrl();
            string apiUrl = apiContext.GetApiUrl();
            string apiName = apiContext.GetApiName();

            PostNotification(ex.Message,
                String.Format("Error parsing the {0} JSON API", apiName), () =>
                {
                    Process.Start(apiUrl);
                },
                ToolTipIcon.Warning, siteUrl);
        }
        private void ShowCoinApiErrorNotification(IApiContext apiContext, Exception ex)
        {
            string apiUrl = apiContext.GetApiUrl();
            string apiName = apiContext.GetApiName();

            string summary = String.Format("Error parsing the {0} JSON API", apiName);
            string details = ex.Message;

            PostNotification(ex.Message, summary, () =>
            {
                MessageBoxShow(String.Format("{0}: {1}", summary, details), "Error", PromptButtons.OK, PromptIcon.Error);
            }, NotificationKind.Warning, apiUrl);
        }