public static void Display(Form owner, SettingsPage page) { using (SimpleSettingsDialog dialog = new SimpleSettingsDialog()) { owner.Site.Container.Add(dialog); dialog.Font = owner.Font; dialog.SettingsPages.Add(page); dialog.ShowDialog(); } }
public static void Display( Form owner, SettingsPage page ) { using( SimpleSettingsDialog dialog = new SimpleSettingsDialog() ) { owner.Site.Container.Add( dialog ); dialog.Font = owner.Font; dialog.SettingsPages.Add( page ); dialog.ShowDialog(); } }
private void textOutputMenuItem_Click(object sender, System.EventArgs e) { SimpleSettingsDialog.Display(this.FindForm(), new TextOutputSettingsPage("Text Output")); }