void ManagePreference() { PreferenceDlg dlg = new PreferenceDlg(); MainForm.SetControlFont(dlg, this.DefaultFont); dlg.ap = this.AppInfo; dlg.MainForm = this; dlg.ShowDialog(this); }