public static void Display(TestCentricPresenter presenter, ITestModel model, params SettingsPage[] pages) { using (TreeBasedSettingsDialog dialog = new TreeBasedSettingsDialog(presenter, model)) { dialog.Font = model.Settings.Gui.Font; dialog.SettingsPages.AddRange(pages); dialog.ShowDialog(); } }
public static void Display(Form owner, ITestModel model, params SettingsPage[] pages) { using (TreeBasedSettingsDialog dialog = new TreeBasedSettingsDialog(model)) { owner.Site.Container.Add(dialog); dialog.Font = owner.Font; dialog.SettingsPages.AddRange(pages); dialog.ShowDialog(); } }