/// <summary>Constructor.</summary> /// <param name="sheet">The sheet to paint.</param> /// <param name="sheetWidget">The sheet widget.</param> /// <param name="sheetEditor">The optional cell editor instance.</param> /// <param name="sheetSelection">The optional cell selection instance.</param> public DefaultCellPainter(Sheet sheet, SheetWidget sheetWidget, ISheetEditor sheetEditor = null, ISheetSelection sheetSelection = null) { this.sheet = sheet; this.sheetWidget = sheetWidget; editor = sheetEditor; selection = sheetSelection; }
/// <summary>Constructor.</summary> /// <param name="sheetView">The sheet to paint.</param> /// <param name="sheetEditor">The optional cell editor instance.</param> /// <param name="sheetSelection">The optional cell selection instance.</param> public DefaultCellPainter(SheetWidget sheetView, ISheetEditor sheetEditor = null, ISheetSelection sheetSelection = null) { sheet = sheetView; editor = sheetEditor; selection = sheetSelection; }