示例#1
0
        //_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);
            }
        }
示例#2
0
        // 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);
            }
        }