Ejemplo n.º 1
0
 public static void copy_content(CmsForm cmsForm, string content, out string out_log)
 {
     out_log = "";
     try
     {
         if (!cmsForm.InvokeRequired)
         {
             //CommonUtil.clipboard("", out out_log);
             int  n    = 0;
             bool flag = false;
             while (n < 10 && !flag)
             {
                 flag = CommonUtil.clipboard(content, out out_log);
                 n++;
                 if (!flag)
                 {
                     Thread.Sleep(1000);
                 }
             }
         }
         else
         {
             GDelegate69 gDelegate69 = new GDelegate69(QqUtil.copy_content);
             object[]    string96    = new object[] { cmsForm, content, out_log };
             cmsForm.Invoke(gDelegate69, string96);
             //cmsForm.BeginInvoke(gDelegate69, string96);
         }
     }
     catch (Exception exception)
     {
         out_log = string.Concat("[CopySndContent]出错:", exception.ToString());
     }
 }
Ejemplo n.º 2
0
        public static string get_kouling_call(CmsForm cmsForm, string uland_url, string pic, string text, string ext)
        {
            string _kouling;

            try
            {
                if (!cmsForm.textBox_setting_appId.InvokeRequired)
                {
                    _kouling = PidUtil.get_kouling(cmsForm, uland_url, pic, text, ext);
                }
                else
                {
                    get_kouling getKouling = new get_kouling(PidUtil.get_kouling);
                    object[]    objArray   = new object[] { cmsForm, uland_url, pic, text, ext };
                    _kouling = (string)cmsForm.Invoke(getKouling, objArray);
                }
            }
            catch (Exception exception)
            {
                return("");
            }
            return(_kouling);
        }
Ejemplo n.º 3
0
        public static string get_weibo_pid_call(CmsForm cmsForm, string member_id)
        {
            string weixinPid;

            try
            {
                if (!cmsForm.comboBox_weibo_tongyong_danyuan.InvokeRequired)
                {
                    weixinPid = PidUtil.get_weibo_pid(cmsForm, member_id);
                }
                else
                {
                    get_pid  getPid   = new get_pid(PidUtil.get_weibo_pid);
                    object[] objArray = new object[] { cmsForm, member_id };
                    weixinPid = (string)cmsForm.Invoke(getPid, objArray);
                }
            }
            catch (Exception exception)
            {
                return("");
            }
            return(weixinPid);
        }