打开 mdi 窗体的子窗体
// 打开窗体。
private void OpenForm(string formName){
foreach (Form fm in this.MdiChildren) {
if (fm.Name == formName) {
fm.Focus();
return;
}
}
Form frm = (Form)Type.GetType(formNameSpace + formName).Assembly.CreateInstance(formNameSpace + formName);
frm.MdiParent = this;
frm.Show();
}
private void OpenForm(string formName){
foreach (Form fm in this.MdiChildren) {
if (fm.Name == formName) {
fm.Focus();
return;
}
}
Form frm = (Form)Type.GetType(formNameSpace + formName).Assembly.CreateInstance(formNameSpace + formName);
frm.MdiParent = this;
frm.Show();
}