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

            var host = new eDrawingHost();

            host.ControlLoaded += OnControlLoaded;
            this.Controls.Add(host);
            host.Dock = DockStyle.Fill;
        }
Ejemplo n.º 2
0
        public eDrawingsHostControl()
        {
            InitializeComponent();

            var host = new WindowsFormsHost();
            var ctrl = new eDrawingHost();

            ctrl.ControlLoaded += OnControlLoaded;
            host.Child          = ctrl;
            this.AddChild(host);
        }