private void InitEditMode() { List <string> _pics = new List <string>(); ChangeToEditModeUI(); weblink_UI.ChangeToEditModeUI(m_post); photo_UI.ChangeToEditModeUI(m_post); pureTextBox.Text = m_post.content; CreateLink(); switch (m_post.type) { case "link": CheckWebPreview(); break; case "image": { AttachmentUtility.GetAllMediumsPhotoPathsByPost(m_post, m_oldImageFiles, m_fileNameMapping); photo_UI.FileNameMapping = m_fileNameMapping; foreach (KeyValuePair <string, string> _imgPair in m_oldImageFiles) { _pics.Add(_imgPair.Value); } } break; } ToSubControl(_pics, getPostType(m_post.type)); }
public string attachments_getRedirectURL_PdfCoverPage(string orgURL) { return(AttachmentUtility.GetRedirectURL_PdfCoverPage(orgURL, SessionToken)); }
public string attachments_getRedirectURL_Image(Attachment a, string imageType, out string url, out string fileName, bool forceCloud) { return(AttachmentUtility.GetRedirectURL_Image(SessionToken, a, imageType, out url, out fileName, forceCloud)); }
public string attachments_getRedirectURL(string orgURL, string object_id, bool isImage) { return(AttachmentUtility.GetRedirectURL(orgURL, SessionToken, object_id, isImage)); }