private void load(string Path) { // 加载模型文件 try { fancyModelMesh.MeshFile tFile = fancyModelMesh.MeshFile.FromFile(Path); _MeshFile = tFile; _MeshFilePath = Path; _LabelForm.File = _MeshFile; _InfoForm.File = _MeshFile; } catch (Exception e) { MessageBox.Show(String.Format("加载模型失败,错误:{0}", e.Message), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void load(string Path) { // 加载模型文件 try { fancyModelMesh.MeshFile tFile = fancyModelMesh.MeshFile.FromFile(Path); _MeshFile = tFile; _MeshFilePath = Path; _LabelForm.File = _MeshFile; _InfoForm.File = _MeshFile; } catch(Exception e) { MessageBox.Show(String.Format("加载模型失败,错误:{0}", e.Message), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } }