public ConfigureDisplayDialog(IDisplayAdapter displayAdapter) : this()
        {
            this.panel = null;

            foreach (var p in PanelChoices)
            {
                if (p.PopulateFromDisplayAdapter(displayAdapter))
                {
                    this.panel = p;
                    break;
                }
            }

            if (this.panel == null)
            {
                throw new ArgumentException("Unknown adapter type");
            }

            var control = this.panel.ToControl();

            this.PanelConfigurations.Controls.Add(control);
            control.Visible = true;
        }
Ejemplo n.º 2
0
 public void ShowConfigurationPanel(string title, IConfigurationPanel panel)
 {
     title          = String.Intern(title);
     _Panels[title] = (Control)panel;
     RefreshTabList();
 }
Ejemplo n.º 3
0
 public void ShowConfigurationPanel(string title, IConfigurationPanel panel)
 {
     title = String.Intern(title);
     _Panels[title] = (Control)panel;
     RefreshTabList();
 }