Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }