protected override void OnLoad(EventArgs e) { foreach (Page aIt in designer.DesignedControl.Controls) { MultiPanePageItem aItem = new MultiPanePageItem(aIt); cmbItems.Items.Add(aItem); if (designer.DesignerSelectedPage == aIt) { cmbItems.SelectedItem = aItem; } } }
protected override void OnLoad(EventArgs e) { foreach (MultiPanePage page in this.myDesigner.DesignedControl.Controls) { MultiPanePageItem item = new MultiPanePageItem(page); this.myCtlCmbItems.Items.Add(item); if (this.myDesigner.DesignerSelectedPage == page) { this.myCtlCmbItems.SelectedItem = item; } } }
protected override void OnLoad(EventArgs e) { foreach (MultiPanePage aIt in myDesigner.DesignedControl.Controls) { var aItem = new MultiPanePageItem(aIt); myCtlCmbItems.Items.Add(aItem); if (myDesigner.DesignerSelectedPage == aIt) { myCtlCmbItems.SelectedItem = aItem; } } }
protected override void OnLoad(EventArgs e) { foreach (MultiPanePage aIt in myDesigner.DesignedControl.Controls) { MultiPanePageItem aItem = new MultiPanePageItem(aIt); myCtlCmbItems.Items.Add(aItem); if (myDesigner.DesignerSelectedPage == aIt) myCtlCmbItems.SelectedItem = aItem; } }
protected override void OnLoad(EventArgs e) { foreach (MultiPanePage page in this.myDesigner.DesignedControl.Controls) { MultiPanePageItem item = new MultiPanePageItem(page); this.myCtlCmbItems.Items.Add(item); if (this.myDesigner.DesignerSelectedPage == page) { this.myCtlCmbItems.SelectedItem = item; } } }