public override void Draw(Graphics g, Pen p)
{
base.Draw(g, p);
var r = this.RectangleF;
var sText = g.MeasureString(this.ColouredPlace.ColorSetName, new Font("Arial", 8));
g.FillRectangle(Brushes.Gray, r.Right, r.Top - sText.Height, sText.Width, sText.Height);
g.DrawString(
this.ColouredPlace.ColorSetName,
new Font("Arial", 8),
Brushes.Blue,
r.Right,
r.Top - sText.Height
);
var tokensString = this.ColouredPlace.Tokens.ToString();
var f = new Font("", 7);
sText = g.MeasureString(tokensString, f);
g.FillRectangle(Brushes.Green, r.Right, r.Bottom, sText.Width, sText.Height);
g.DrawString(
tokensString,
new Font("", 7),
Brushes.Black,
r.Right,
r.Bottom
);
}