Example #1
0
 /// <summary>
 /// Paint table controls for row
 /// </summary>
 /// <param name="tableRenderer"></param>
 /// <param name="g"></param>
 /// <param name="item"></param>
 /// <param name="isRowMarked"></param>
 /// <param name="isSelected"></param>
 /// <param name="columnsManager"></param>
 private void PaintRowControls(TableChildRendererBase tableChildRenderer, Graphics g, TableItem item, bool isRowMarked, bool isSelected, ColumnsManager columnsManager)
 {
     if (item != null)
     {
         item.ZOrderSortedControls = item.ZOrderSortedControls != null && item.ZOrderSortedControls.Count > 0 ? item.ZOrderSortedControls : item.GetAllColumnsControlsByZOrder();
         if (item.ZOrderSortedControls != null)
         {
             foreach (PlacementDrivenLogicalControl lg in item.ZOrderSortedControls)
             {
                 tableChildRenderer.PaintControl(lg, tableChildRenderer.GetCellRect(lg), g, isRowMarked, isSelected, columnsManager);
             }
         }
     }
 }
 /// <summary>
 /// Paint table cells controls
 /// </summary>
 /// <param name="tableRenderer"></param>
 /// <param name="item"></param>
 /// <param name="g"></param>
 /// <param name="cellData"></param>
 /// <param name="columnsManager"></param>
 /// <param name="isRowMarked"></param>
 /// <param name="isSelected"></param>
 private void PaintCellControls(TableChildRendererBase tableChildRenderer, TableItem item, Graphics g, CellData cellData, ColumnsManager columnsManager, bool isRowMarked, bool isSelected)
 {
     //paint cell's controls
     if (item != null)
     {
         LgList tableChildren = getColumnChildren(item, cellData.ColumnIdx, columnsManager);
         if (tableChildren != null)
         {
             foreach (PlacementDrivenLogicalControl lg in tableChildren)
             {
                 tableChildRenderer.PaintControl(lg, cellData.Rect, g, isRowMarked, isSelected, columnsManager);
             }
         }
     }
 }