// 属性 private void MenuItem_properties_Click(object sender, EventArgs e) { if (this.ActiveMdiChild is DetailForm) { DetailForm detail = (DetailForm)this.ActiveMdiChild; RecordPropertiesDlg dlg = new RecordPropertiesDlg(); MainForm.SetControlFont(dlg, this.DefaultFont); dlg.textBox_content.Text = detail.PropertiesText; dlg.ShowDialog(this); } }
// 属性 private void MenuItem_properties_Click(object sender, EventArgs e) { if (this.ActiveMdiChild is DetailForm) { DetailForm detail = (DetailForm)this.ActiveMdiChild; RecordPropertiesDlg dlg = new RecordPropertiesDlg(); MainForm.SetControlFont(dlg, this.DefaultFont); dlg.textBox_content.Text = detail.PropertiesText; dlg.ShowDialog(this); } }