Exemplo n.º 1
0
        private void PanelShapesOnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            _graphicPanel.Clear(DefaultBackColor);

            foreach (var item in ProtocolProcess.PanelShapes)
            {
                _graphicPanel = ShapeUtils.FillShape(item.Type, _graphicPanel, new SolidBrush(item.Color), item.Location);
            }
        }