Beispiel #1
0
        public static void zhuanhua_copy_Click_kouling(CmsForm cmsForm, string content)
        {
            try
            {
                content = UrlUtil.copyImgContent(cmsForm, content, null);
                content = UrlUtil.parseContentWenan(cmsForm, content);
                ContentItem contentItem = UrlUtil.parseContent(cmsForm, content, null, true, true, 0);
                content = contentItem.content_send;

                string qq_com_pid = PidUtil.get_qq_com_pid_call(cmsForm, cmsForm.appBean.member_id);

                string weiba = UrlUtil.parseContent_kouling(cmsForm, contentItem, PidUtil.get_qq_com_pid_call(cmsForm, cmsForm.appBean.member_id), true);
                if (!string.IsNullOrEmpty(weiba))
                {
                    content = content + weiba;
                }
                string out_log;
                QqUtil.copy_content(cmsForm, content, out out_log);
                if (cmsForm.checkBox_tools_qingkong.Checked)
                {
                    ((IHTMLDocument2)cmsForm.webBrowser_zhuanhua.Document.DomDocument).body.innerHTML = "";
                }
                LogUtil.log_call(cmsForm, "转换拷贝完成!");
            }
            catch (Exception exception)
            {
                //MessageBox.Show("[messageForThread]出错:" + exception.ToString());
            }
        }
Beispiel #2
0
 public static void zhuanhua_copy_Click(CmsForm cmsForm, string content)
 {
     try
     {
         content = UrlUtil.copyImgContent(cmsForm, content, null);
         content = UrlUtil.parseContentWenan(cmsForm, content);
         ContentItem contentItem = UrlUtil.parseContent(cmsForm, content, null, true, true, 0);
         content = contentItem.content_send;
         string out_log;
         QqUtil.copy_content(cmsForm, content, out out_log);
         if (cmsForm.checkBox_tools_qingkong.Checked)
         {
             ((IHTMLDocument2)cmsForm.webBrowser_zhuanhua.Document.DomDocument).body.innerHTML = "";
         }
         LogUtil.log_call(cmsForm, "转换拷贝完成!");
     }
     catch (Exception exception)
     {
         //MessageBox.Show("[messageForThread]出错:" + exception.ToString());
     }
 }