//_items drawing private void pbDashboard_Paint(object sender, PaintEventArgs e) { foreach (IDrawable item in this._items) { item.Draw(sender, e.Graphics); } if (this._flow != null) { _flow.Draw(sender, e.Graphics); } if (this._reff != null) { e.Graphics.DrawLine(Pens.Blue, Middle(this._reff.GetBounds()), this._mousePoint); } }
// items drawing private void pbDashboard_Paint(object sender, PaintEventArgs e) { foreach (var item in items) { item.Draw(sender, e.Graphics); } if (flow != null) { flow.Draw(sender, e.Graphics); } if (reference != null) { e.Graphics.DrawLine(Pens.Blue, Middle(reference.Bounds), mousePoint); } }