private void AddRow(string data, ref HtmlLib.HtmTable t) { var c = new HtmlLib.HtmCol(); var r = new HtmlLib.HtmRow(); c.Attr = BgColour(); c.Attr += " ALIGN='CENTER'"; c.Data = (data.Length > 0) ? data : HtmlLib.Spaces(19); r.AddCol(c); t.AddRow(r); }
private void AddRow(ref HtmlLib.HtmTable t) { var c = new HtmlLib.HtmCol(); var r = new HtmlLib.HtmRow(); c.Attr = "BGCOLOR='LIGHTBLUE'"; c.Attr += " ALIGN='LEFT'"; c.Data = _mUnitCode; r.AddCol(c); var c2 = new HtmlLib.HtmCol {Attr = "BGCOLOR='LIGHTBLUE'"}; c2.Attr += " ALIGN='RIGHT'"; c2.Data = _mUnitRating; r.AddCol(c2); t.AddRow(r); var c3 = new HtmlLib.HtmCol(); var r2 = new HtmlLib.HtmRow(); c3.Attr = "BGCOLOR='LIGHTBLUE'"; c3.Attr += " ALIGN='CENTER'"; c3.Attr += " COLSPAN='2'"; c3.Data = _mStats; r2.AddCol(c3); t.AddRow(r2); }