private void ListBoxGraphicsDrawItem(object sender, DrawItemEventArgs e)
{
var index = e.Index;
var str = (index == 0) ? "<None>" : this._resources[e.Index].Name;
using (e.Graphics)
{
e.DrawBackground();
if (index > 0)
{
e.Graphics.DrawImageUnscaled(
this._resources[index].Location == Core.Location.Local ?
Resources.ResourceLocal : Resources.ResourceRTP,
e.Bounds);
}
e.Graphics.DrawString(" " + str, e.Font, Brushes.Black, e.Bounds);
e.DrawFocusRectangle();
}
}