public async Task <NoticeDetail> GetContentInfoAsync(string noticeId) { var json = await MainWindow.operateClient.GetStringAsync(MainWindow.eHallHttp + "/publicapp/sys/bulletin/bulletin/getBulletinById.do?WID=" + noticeId); NoticeDetail contentJson = JsonConvert.DeserializeObject <NoticeDetail>(json); return(contentJson); }
public async void ShowContentAsync() { FileOperation fileOperation = new FileOperation(FileGrid); JsonOperation notice = new JsonOperation(); NoticeDetail detail = await notice.GetContentInfoAsync(noticeId); title = detail.Title; content = detail.Content; string text = Regex.Replace(content, @"<.*?>|&.*?;", string.Empty); text = " " + text; DetailContent.Text = text; fileOperation.ShowFileAsync(token); }