private void button_testRelationDialog_Click(object sender, EventArgs e) { RelationDialog dlg = new RelationDialog(); MainForm.SetControlFont(dlg, this.Font, false); dlg.ProcSearchDictionary = SearchDictionary; dlg.Show(this); }