/// <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 widget.</param> public SheetScrollBars(SheetWidget sheetView) { sheet = sheetView; sheet.Initialised += OnSheetInitialised; sheet.ScrolledHorizontally += OnSheetScrolled; sheet.ScrolledVertically += OnSheetScrolled; Initialise(); }
/// <summary>Constructor.</summary> /// <param name="sheetView">The sheet widget.</param> public SingleCellSelect(SheetWidget sheetView) { sheet = sheetView; selectedColumnIndex = 0; selectedRowIndex = sheet.NumberFrozenRows; sheet.KeyPress += OnKeyPressEvent; sheet.MouseClick += OnMouseClickEvent; }
/// <summary>Constructor.</summary> /// <param name="sheet">The sheet.</param> /// <param name="sheetWidget">The sheet widget.</param> public SheetScrollBars(Sheet sheet, SheetWidget sheetWidget) { this.sheet = sheet; this.sheetWidget = sheetWidget; sheet.Initialised += OnSheetInitialised; sheet.ScrolledHorizontally += OnSheetScrolled; sheet.ScrolledVertically += OnSheetScrolled; Initialise(); }
/// <summary>Constructor.</summary> /// <param name="sheetView">The sheet widget.</param> public SheetEditor(SheetWidget sheetView) { sheet = sheetView; sheet.KeyPress += OnKeyPressEvent; }
/// <summary>Constructor.</summary> /// <param name="sheet">The sheet.</param> /// <param name="sheetWidget">The sheet widget.</param> public SheetEditor(Sheet sheet, SheetWidget sheetWidget) { this.sheet = sheet; this.sheetWidget = sheetWidget; sheet.KeyPress += OnKeyPressEvent; }