public void close2() { xy.Close(); xz.Close(); yz.Close(); engine.Dispose(); }
public ModelExplore(I3DModelFormat model) { InitializeComponent(); ModelViewer.Dock = DockStyle.Fill; viewerBox.Controls.Add(ModelViewer); Model = model; ModelViewer.SetModel(model.ToGenericModel()); FormClosed += (sender, args) => { ModelViewer.Dispose(); GC.Collect(); }; }