得到文件名
1 string fileName = ofd.SafeFileName;
得到路径
1 string filePath = System.IO.Path.GetDirectoryName(ofd.FileName);