Ejemplo n.º 1
0
        public DemoForm()
        {
            InitializeComponent();

            container.SetContainer(label1);
            painter.SetGraphics(label1.CreateGraphics());
            control_0.SetPainter(painter);
            control_1.SetPainter(painter);
            control_2.SetPainter(painter);

            control_0.Rectangle = new Rectangle(0, 0, 200, 100);

            container.Controls.Add(control_0);
            container.Controls.Add(control_1);
            container.Controls.Add(control_2);
        }