コード例 #1
0
        public void HivemindFastSubmit(string block_id, string block_name, string id, string src, string trans)
        {
            string url;

            url  = Global.options.hivemindServer;
            url += (url.EndsWith("/") ? "" : "/");
            StringBuilder q = new StringBuilder();

            if (string.IsNullOrEmpty(id) || id == "0")
            {
                q.Append("src=" + Translation.UrlEncode(src));
            }
            else
            {
                q.Append("src_id=" + Translation.UrlEncode(id));
            }
            q.Append("&trans=" + Translation.UrlEncode(trans));
            HivemindSubmit.RequestData req = new HivemindSubmit.RequestData();
            req.query       = q.ToString();
            req.block_id    = block_id;
            req.block_name  = block_name;
            req.translation = trans;
            Thread reqThread = new Thread(HivemindSubmit.instance.reqThreadProc);

            reqThread.IsBackground = true;
            reqThread.Start(req);
        }
コード例 #2
0
 public void HivemindFastSubmit(string block_id, string block_name, string id, string src, string trans)
 {
     string url;
     url = Global.options.hivemindServer;
     url += (url.EndsWith("/") ? "" : "/");
     StringBuilder q = new StringBuilder();
     if (string.IsNullOrEmpty(id) || id == "0")
     {
         q.Append("src=" + Translation.UrlEncode(src));
     }
     else
     {
         q.Append("src_id=" + Translation.UrlEncode(id));
     }
     q.Append("&trans=" + Translation.UrlEncode(trans));
     HivemindSubmit.RequestData req = new HivemindSubmit.RequestData();
     req.query = q.ToString();
     req.block_id = block_id;
     req.block_name = block_name;
     req.translation = trans;
     Thread reqThread = new Thread(HivemindSubmit.instance.reqThreadProc);
     reqThread.IsBackground = true;
     reqThread.Start(req);
 }