Ejemplo n.º 1
0
        private void LoadBuilder(ICreateDataProvider builder)
        {
            if (pContainer.Controls.Count != 0)
            {
                Control c = pContainer.Controls[0];
                pContainer.Controls.Remove(c);
                c.Dispose();
            }

            pContainer.Controls.Add((Control)builder);
            ((Control)builder).Dock = DockStyle.Fill;
        }
Ejemplo n.º 2
0
        private void LoadBuilder(ICreateDataProvider builder)
        {
            if (pContainer.Controls.Count != 0)
            {
                Control c = pContainer.Controls[0];
                pContainer.Controls.Remove(c);
                c.Dispose();
            }

            pContainer.Controls.Add((Control)builder);
            ((Control)builder).Dock = DockStyle.Fill;
        }