示例#1
0
        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();
            }
        }
示例#2
0
 private void OnPalettePaint(object sender, PaletteLayoutEventArgs e)
 {
     Invalidate();
 }
示例#3
0
 private void OnPalettePaint(object sender, PaletteLayoutEventArgs e)
 {
     // Palette indicates we might need to repaint, so lets do it
     Invalidate();
 }
示例#4
0
 /// <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();
 }