示例#1
0
        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));
        }
示例#2
0
 public string attachments_getRedirectURL_PdfCoverPage(string orgURL)
 {
     return(AttachmentUtility.GetRedirectURL_PdfCoverPage(orgURL, SessionToken));
 }
示例#3
0
 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));
 }
示例#4
0
 public string attachments_getRedirectURL(string orgURL, string object_id, bool isImage)
 {
     return(AttachmentUtility.GetRedirectURL(orgURL, SessionToken, object_id, isImage));
 }