Game Development Reference
In-Depth Information
{
thumbnail.BackColor = BackgroundColorSelected;
thumbnail.ForeColor = ForegroundColorSelected;
}
else
{
thumbnail.BackColor = BackgroundColor;
thumbnail.ForeColor = ForegroundColor;
}
}
_applyAppearance = false;
}
}
internal void PerformSelect(TextureThumbnail thumbnail)
{
switch (_selection)
{
case SelectionMode.Single:
{
DeselectAll();
thumbnail.Selected = true;
if (TextureSelected != null)
TextureSelected(this,
new TextureBrowserEventArgs(thumbnail.Texture));
break;
}
case SelectionMode.Multiple:
{
if (Control.ModifierKeys == Keys.Control)
{
thumbnail.Selected = !thumbnail.Selected;
if (thumbnail.Selected)
{
if (TextureSelected != null)
TextureSelected(this,
new TextureBrowserEventArgs(thumbnail.Texture));
}
Search Nedrilad ::




Custom Search