/// <summary> /// Execute action on all the "td" cells of the table.<br/> /// Handle if there is "theader" or "tbody" exists. /// </summary> /// <param name="table">the table element</param> /// <param name="action">the action to execute</param> private static void SetForAllCells(CssBox table, Utils.Action <CssBox> action) { foreach (var l1 in table.Boxes) { foreach (var l2 in l1.Boxes) { if (l2.HtmlTag != null && l2.HtmlTag.Name == "td") { action(l2); } else { foreach (var l3 in l2.Boxes) { action(l3); } } } } }
/// <summary> /// Init. /// </summary> /// <param name="loadCompleteCallback">callback raised when image load process is complete with image or without</param> public ImageLoadHandler(Utils.Action<Image, Rectangle, bool> loadCompleteCallback) { ArgChecker.AssertArgNotNull(loadCompleteCallback, "loadCompleteCallback"); _loadCompleteCallback = loadCompleteCallback; }