public override void OnMouseDown(int Button, int Shift, int X, int Y)
 {
     // TODO:  Add Controls_CoverAnalysisBasePolygonDrawTool.OnMouseDown implementation
     try
     {
         if (Button == 1)//表示左键
         {
             //IGeometry需要引用Geometry
             IGeometry polygon = m_mapControl.TrackPolygon();
             //将值传入到另一个窗体
             if (AnalysisForm.curForm == null || AnalysisForm.curForm.IsDisposed == true)
             {
                 AnalysisForm form = new AnalysisForm();
                 form.MapControl = m_mapControl;
                 form.Geometry   = polygon;
                 form.TopMost    = true;//顶层显示
                 form.Show();
                 form.RefreshGeometry();
             }
             else
             {
                 AnalysisForm.curForm.MapControl = m_mapControl;
                 AnalysisForm.curForm.Geometry   = polygon;
                 AnalysisForm.curForm.TopMost    = true;//顶层显示
                 AnalysisForm.curForm.Show();
                 AnalysisForm.curForm.RefreshGeometry();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        public override void OnMouseDown(int Button, int Shift, int X, int Y)
        {
            // TODO:  Add Controls_CoverAnalysisBasePolylineDrawTool.OnMouseDown implementation
            try
            {
                if (Button == 1)//表示左键
                {
                    //IGeometry需要引用Geometry
                    IGeometry Polyline = m_mapControl.TrackLine();

                    QurryDistanceForm f = new QurryDistanceForm();
                    if (f.ShowDialog() == DialogResult.OK)
                    {
                        if (AnalysisForm.curForm == null || AnalysisForm.curForm.IsDisposed == true)
                        {
                            AnalysisForm form = new AnalysisForm();
                            form.MapControl = m_mapControl;
                            form.Geometry   = Polyline;
                            form.Radius     = f.m_distance;
                            form.TopMost    = true;//顶层显示
                            form.Show();
                            form.RefreshGeometry();
                        }
                        else
                        {
                            AnalysisForm.curForm.MapControl = m_mapControl;
                            AnalysisForm.curForm.Geometry   = Polyline;
                            AnalysisForm.curForm.Radius     = f.m_distance;
                            AnalysisForm.curForm.TopMost    = true;//顶层显示
                            AnalysisForm.curForm.Show();
                            AnalysisForm.curForm.RefreshGeometry();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
示例#3
0
        private void LoadOnModelForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            AnalysisForm form = new AnalysisForm(FemapModel);

            form.Show();
        }
示例#4
0
        private void MaterialPropertyForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            AnalysisForm form = new AnalysisForm(FemapModel);

            form.Show();
        }
示例#5
0
        private void analysisToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AnalysisForm newAnalysisForm = new AnalysisForm();

            newAnalysisForm.Show();
        }