Exemplo n.º 1
0
        public override void PaintValue(PaintValueEventArgs e)
        {
            MindFusion.FlowChartX.Brush brush =
                e.Value as MindFusion.FlowChartX.Brush;

            if (brush == null)
            {
                return;
            }

            System.Drawing.Brush gdiBrush = brush.CreateGDIBrush(e.Bounds);
            e.Graphics.FillRectangle(gdiBrush, e.Bounds);
            gdiBrush.Dispose();
        }
Exemplo n.º 2
0
        private void UpdatePreview()
        {
            MindFusion.FlowChartX.Brush brush = Brush;
            if (brush == null)
            {
                return;
            }

            if (_temp != null)
            {
                _temp.Dispose();
            }

            _temp          = brush.CreateGDIBrush(_preview.ClientRectangle);
            _preview.Brush = _temp;
        }