private void MDIParent1_Load(object sender, EventArgs e)
{
DirectoryInfo dir = new DirectoryInfo("D:\\pdfandRTF\\TEST1");
FileInfo[] files = dir.GetFiles();
foreach (FileInfo file in files)
{
string[] strArray = file.FullName.Split('.');
switch (strArray[1])
{
case "rtf": ShowRtfForm(file.FullName); break;
case "pdf": ShowPdfForm(file.FullName); break;
}
}
LayoutMdi(MdiLayout.TileHorizontal); //上下显示
}