private void btnRenderModel_Click(object sender, EventArgs e) { var model = fileNavigator.SelectedNode.Tag as DatDigger.Sections.Model.ModelContainerChunk; if (model == null) { return; } // Launch the texture renderer in a separate thread System.Threading.Thread t = new System.Threading.Thread((data) => { using (Renderer.PreviewModel sample = new Renderer.PreviewModel((DatDigger.Sections.Model.ModelContainerChunk)data)) { sample.Run(); } }); t.Start(model); }