要想使用Graphics类,则必须有PaintEventArgs对象。
例如:
protected override void OnPaint(PaintEventArgs pe)
{
Graphics g = pe.Graphics;
g.FillEllipse(GardenPictureBox.__brush, 5, 5, 150, 150);
if (this.__garden != null)
{
this.__garden.draw(g);
}
}