public string GetDownloadInfo(CodeRecord codeRecord)
        {
            return(string.Format(@"您已通过二维码验证,浏览器即将开始下载 Senparc.Weixin SDK 帮助文档。
当前选择的版本:v{0}({1})

© {2} Senparc", codeRecord.Version, codeRecord.IsWebVersion ? "网页版" : ".chm文档版", DateTime.Now.Year));
        }
Exemple #2
0
 public int GetCoverage(CodeRecord rec)
 {
     if (rec.GetLines().Length == 0)
     {
         return(-1);
     }
     return((int)Math.Round(100 * rec.Coverage));
 }
        public string GetDownloadInfo(CodeRecord codeRecord)
        {
            return(string.Format(@"您已通过二维码验证,浏览器即将开始下载 Senparc.Weixin SDK 帮助文档。
当前选择的版本:v{0}({1})
我们期待您的意见和建议,客服热线:400-031-8816。
感谢您对盛派网络的支持!
© {2} Senparc", codeRecord.Version, codeRecord.IsWebVersion ? "网页版" : ".chm文档版", SystemTime.Now.Year));
        }
        public string GetDownloadInfo(CodeRecord codeRecord)
        {
            return(string.Format(@"您已通过二维码验证,浏览器即将开始下载 Senparc.Weixin SDK 帮助文档。
当前选择的版本:v{0}

我们期待您的意见和建议,客服热线:400-031-8816。

感谢您对盛派网络的支持!

© 2016 Senparc", codeRecord.Version));
        }
Exemple #5
0
        public string GetDownloadInfo(CodeRecord codeRecord)
        {
            return(string.Format(@"您已通过二维码验证,浏览器即将开始下载 Senparc.Weixin SDK 帮助文档。
当前选择的版本:v{0}({1})

我们期待您的意见和建议,客服热线:400-031-8816。

感谢您对Hotoem的支持!

© 2016 Senparc", codeRecord.Version, codeRecord.IsWebVersion ? "网页版" : ".chm文档版"));
        }
Exemple #6
0
        public static void RenderCoverage(TreeViewColumn col, CellRenderer cell, TreeModel model, TreeIter iter)
        {
            var        txt = cell as CellRendererText;
            CodeRecord rc  = (CodeRecord)model.GetValue(iter, 0);

            if (txt != null)
            {
                txt.Foreground = CellColor(rc.Coverage);
                txt.Text       = String.Format("{0:00.0}%", rc.Coverage * 100.0);
            }
        }
Exemple #7
0
 public void RenderCoverage(SourceBuffer buf, CodeRecord rec)
 {
     foreach (var line in rec.GetLines())
     {
         var hits = rec.GetHits(line);
         if (hits > 0)
         {
             var hittag = hits == 1 ? "visited_once" : "visited_more";
             buf.ApplyTag(hittag, buf.GetIterAtLine(line - 1), buf.GetIterAtLine(line));
         }
     }
 }
Exemple #8
0
 public void RenderCoverage(TextBuffer buf, CodeRecord rec)
 {
     foreach (var line in rec.GetLines())
     {
         var    hits = rec.GetHits(line);
         string tag  = "visited_never";
         if (hits > 0)
         {
             tag = hits == 1 ? "visited_once" : "visited_more";
         }
         buf.ApplyTag(tag, buf.GetIterAtLine(line - 1), buf.GetIterAtLine(line));
     }
 }
Exemple #9
0
 public string GetDownloadInfo(CodeRecord codeRecord)
 {
     return(string.Format(@"您已通过二维码验证", codeRecord.Version, codeRecord.IsWebVersion ? "网页版" : ".chm文档版"));
 }