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();
     }
 }
Ejemplo n.º 2
0
 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();
     }
 }
Ejemplo n.º 3
0
 private void textOutputMenuItem_Click(object sender, System.EventArgs e)
 {
     SimpleSettingsDialog.Display(this.FindForm(), new TextOutputSettingsPage("Text Output"));
 }