public void AddRange(OutlookBarButtonCollection items) { foreach (OutlookBarButton item in items) { this.Add(item); } }
public OutlookBarNavigationPaneOptions(OutlookBarButtonCollection items) { InitializeComponent(); this.Items = items; foreach (OutlookBarButton b in this.Items) { this.OriginalItems.Add(b, null, null, null); } this.FillList(); this.CheckedListBox1.SelectedIndex = 0; }