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); } }
private void LoadOnModelForm_FormClosing(object sender, FormClosingEventArgs e) { AnalysisForm form = new AnalysisForm(FemapModel); form.Show(); }
private void MaterialPropertyForm_FormClosing(object sender, FormClosingEventArgs e) { AnalysisForm form = new AnalysisForm(FemapModel); form.Show(); }
private void analysisToolStripMenuItem_Click(object sender, EventArgs e) { AnalysisForm newAnalysisForm = new AnalysisForm(); newAnalysisForm.Show(); }