コード例 #1
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteGrid class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="gridStyle">Grid style.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteGrid(PaletteRedirect redirect,
                           GridStyle gridStyle,
                           NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateCommon = new PaletteDataGridViewRedirect(redirect, needPaint);
     _stateDisabled = new PaletteDataGridViewAll(_stateCommon, needPaint);
     _stateNormal = new PaletteDataGridViewAll(_stateCommon, needPaint);
     _stateTracking = new PaletteDataGridViewHeaders(_stateCommon, needPaint);
     _statePressed = new PaletteDataGridViewHeaders(_stateCommon, needPaint);
     _stateSelected = new PaletteDataGridViewCells(_stateCommon, needPaint);
 }
コード例 #2
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteGrid class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="gridStyle">Grid style.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteGrid(PaletteRedirect redirect,
                           GridStyle gridStyle,
                           NeedPaintHandler needPaint)
 {
     // Create the storage objects
     StateCommon   = new PaletteDataGridViewRedirect(redirect, needPaint);
     StateDisabled = new PaletteDataGridViewAll(StateCommon, needPaint);
     StateNormal   = new PaletteDataGridViewAll(StateCommon, needPaint);
     StateTracking = new PaletteDataGridViewHeaders(StateCommon, needPaint);
     StatePressed  = new PaletteDataGridViewHeaders(StateCommon, needPaint);
     StateSelected = new PaletteDataGridViewCells(StateCommon, needPaint);
 }