Beispiel #1
0
 private string CreateHtmlBars(I3ValueBar run)
 {
     double pcOk = run.PercentOK;
         double pcKo = run.PercentKO; ;
         double pcIg = run.PercentIgnored;
         string result = "<div class=\"barContainer\">";
         if (pcOk != 0)
         {
             result+=string.Format("<span class=\"ok\"  style=\"width:{0}%\" title=\"Passed!\" >p</span>", pcOk.ToString());
         }
         if (pcKo != 0)
         {
             result += string.Format("<span class=\"ko\"  style=\"width:{0}%\" title=\"Failed\">f</span>", pcKo.ToString());
         }
         if (pcIg != 0)
         {
             result += string.Format("<span class=\"ignore\"  style=\"width:{0}%\" title=\"Failed\">f</span>", pcIg.ToString());
         }
         result+="</div>";
         return result;
 }
        private string CreateHtmlBars(I3ValueBar run)
        {
            double pcOk   = run.PercentOK;
            double pcKo   = run.PercentKO;;
            double pcIg   = run.PercentIgnored;
            string result = "<div class=\"barContainer\">";

            if (pcOk != 0)
            {
                result += string.Format("<span class=\"ok\"  style=\"width:{0}%\" title=\"Passed!\" >p</span>", pcOk.ToString());
            }
            if (pcKo != 0)
            {
                result += string.Format("<span class=\"ko\"  style=\"width:{0}%\" title=\"Failed\">f</span>", pcKo.ToString());
            }
            if (pcIg != 0)
            {
                result += string.Format("<span class=\"ignore\"  style=\"width:{0}%\" title=\"Failed\">f</span>", pcIg.ToString());
            }
            result += "</div>";
            return(result);
        }