近期打包一个项目,项目中加入了ADR的浏览功能,不是使用ADR控件的方法(因为我的vs 2010 一拖拉ADR 控件就老停止工作。。。),主要代码如下(前人做的,我只是负责打包,不过不难看懂):
<span style="white-space:pre"> </span>public dwf()
{
InitializeComponent();
axCExpressViewerControl = new AxCExpressViewerControl();
axCExpressViewerControl.Parent = panel2;
axCExpressViewerControl.Dock = DockStyle.Fill;
}
private void dwf_Load(object sender, EventArgs e)
{
LoadModel();
}
Dictionary<string, string> files;
private void LoadModel()
{
files = new Dictionary<string, string>();
startpath = Application.StartupPath;
DirectoryInfo Dir = new DirectoryInfo(startpath + @"\Visualization\CAD");
treeView1.Nodes.A