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