private void treeView1_DoubleClick(object sender, EventArgs e) { TreeNode node = this.treeView1.SelectedNode; if (node == null || node.Tag == null) { return; } FeatureContext context = new FeatureContext(RenderView); if (m_CurrentFeature != null) { m_CurrentFeature.OnExit(context); } m_RenderView.ClearScene(); m_CurrentFeature = node.Tag as Feature; if (m_CurrentFeature.Run(context)) { m_RenderView.FitAll(); } m_RenderView.RequestDraw(); this.toolStripStatusLabel1.Text = m_CurrentFeature.Name; }
public void ZoomToFit() { m_RenderView.FitAll(); m_RenderView.RequestDraw(); }