private void LoadTragetForm(string fileName,string className)
{
try
{
this.targetForm = Assembly.LoadFrom(dllName).CreateInstance(className) as BCM.BaseForm;
this.targetForm.MdiParent = MDIPraent;
this.targetForm.WindowState = FormWindowState.Maximized;
}
catch(System.IO.FileNotFoundException e)
{
MessageBox.Show( "找不到动态联接库:" + e.FileName ,gv.syscap,
MessageBoxButtons.OK,MessageBoxIcon.Error);
return;
}
catch(System.Exception e)
{
MessageBox.Show(e.Message,gv.syscap);
return;
}
}