Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public void ZoomToFit()
 {
     m_RenderView.FitAll();
     m_RenderView.RequestDraw();
 }