void OnPalettePaint(object sender, PaletteLayoutEventArgs e) { // Only interested the first time the palette is changed if (!_dirty) { _dirty = true; UpdateTitlebar(); } // Do we need to setup a new renderer for the ToolMenuStatus page? if (e.NeedColorTable) { UpdateChromeTMS(); } }
private void OnPalettePaint(object sender, PaletteLayoutEventArgs e) { Invalidate(); }
private void OnPalettePaint(object sender, PaletteLayoutEventArgs e) { // Palette indicates we might need to repaint, so lets do it Invalidate(); }
/// <summary> /// Handles the PalettePaint event of the Palette control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="PaletteLayoutEventArgs"/> instance containing the event data.</param> private void Palette_PalettePaint(object sender, PaletteLayoutEventArgs e) => Invalidate();
private void OnPalettePaint(object sender, PaletteLayoutEventArgs e) { InitialiseColours(); }