private void UpdateResultTab(UploadResult result) { AddInfo(rtbResult, "Shortened URL", result.ShortenedURL); AddInfo(rtbResult, "URL", result.URL); AddInfo(rtbResult, "Thumbnail URL", result.ThumbnailURL); AddInfo(rtbResult, "Deletion URL", result.DeletionURL); if (result.IsError) { AddInfo(rtbResult, "Error", result.ErrorsToString()); } }
private void UpdateResultTab(UploadResult result) { tsbCopyShortenedURL.Visible = !string.IsNullOrEmpty(result.ShortenedURL); AddInfo(rtbResult, "Shortened URL", result.ShortenedURL); tsbCopyURL.Visible = !string.IsNullOrEmpty(result.URL); AddInfo(rtbResult, "URL", result.URL); tsbCopyThumbnailURL.Visible = !string.IsNullOrEmpty(result.ThumbnailURL); AddInfo(rtbResult, "Thumbnail URL", result.ThumbnailURL); tsbCopyDeletionURL.Visible = !string.IsNullOrEmpty(result.DeletionURL); AddInfo(rtbResult, "Deletion URL", result.DeletionURL); if (result.IsError) { AddInfo(rtbResult, "Error", result.ErrorsToString()); } }