public static void Display( Form owner, params SettingsPage[] pages ) { using( TabbedSettingsDialog dialog = new TabbedSettingsDialog() ) { owner.Site.Container.Add( dialog ); dialog.Font = owner.Font; dialog.SettingsPages.AddRange( pages ); dialog.ShowDialog(); } }
public static void Display(Form owner, params SettingsPage[] pages) { using (TabbedSettingsDialog dialog = new TabbedSettingsDialog()) { owner.Site.Container.Add(dialog); dialog.Font = owner.Font; dialog.SettingsPages.AddRange(pages); dialog.ShowDialog(); } }