コード例 #1
0
 /// <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;
 }
コード例 #2
0
ファイル: SheetScrollBars.cs プロジェクト: ilhuber/ApsimX
 /// <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();
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
ファイル: SheetScrollBars.cs プロジェクト: lie112/ApsimX
 /// <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();
 }
コード例 #5
0
 /// <summary>Constructor.</summary>
 /// <param name="sheetView">The sheet widget.</param>
 public SheetEditor(SheetWidget sheetView)
 {
     sheet           = sheetView;
     sheet.KeyPress += OnKeyPressEvent;
 }
コード例 #6
0
ファイル: SheetEditor.cs プロジェクト: lie112/ApsimX
 /// <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;
 }