private ISpatialReference SelectPrj(string p) { SpatialReferenceSelection frm = new SpatialReferenceSelection(); frm.ShowDialog(); return(frm.SpatialReference); }
//更多投影 void morePrj_Click(object sender, EventArgs e) { try { string filename = CheckActiverFile(); using (SpatialReferenceSelection frmSp = new SpatialReferenceSelection()) { if (frmSp.ShowDialog() == DialogResult.OK) { if (frmSp.SpatialReference != null) { Projection(frmSp.SpatialReference); } } } } catch (Exception ex) { MessageBox.Show(ex.Message, "消息提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } finally { _group.Enabled = true; } }
private void btnMoreType_Click(object sender, EventArgs e) { SpatialReferenceSelection spatialReferenceSelUI = new SpatialReferenceSelection(); if (spatialReferenceSelUI.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { MessageBox.Show(spatialReferenceSelUI.SpatialReference != null ? spatialReferenceSelUI.SpatialReference.ToString() : string.Empty); } }
void prjDef_Click(object sender, EventArgs e) { using (SpatialReferenceSelection frmSp = new SpatialReferenceSelection()) { if (frmSp.ShowDialog() == DialogResult.OK) { if (frmSp.SpatialReference != null) { Projection(frmSp.SpatialReference); } } } }
private void TestSpatialRefUI_Click(object sender, EventArgs e) { //SpatialReferenceSelection spatialReferenceSelUI = new SpatialReferenceSelection(); //spatialReferenceSelUI.Visible = true; //(spatialReferenceSelUI as Form).Text = spatialReferenceSelUI.Name; using (SpatialReferenceSelection spatialReferenceSelUI = new SpatialReferenceSelection()) { if (spatialReferenceSelUI.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { MessageBox.Show(spatialReferenceSelUI.SpatialReference != null ? spatialReferenceSelUI.SpatialReference.ToString() : string.Empty); } } }
private void tsmiMoreType_Click(object sender, EventArgs e) { using (SpatialReferenceSelection spatialReferenceSelUI = new SpatialReferenceSelection()) { if (spatialReferenceSelUI.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { MessageBox.Show(spatialReferenceSelUI.SpatialReference != null ? spatialReferenceSelUI.SpatialReference.ToString() : string.Empty); ProParas.DstSpatialRef = spatialReferenceSelUI.SpatialReference; _outTypeName = ProParas.DstSpatialRef.Name; } } SetParaSBValue(); }
void morePrj_Click(object sender, EventArgs e) { try { using (SpatialReferenceSelection frmSp = new SpatialReferenceSelection()) { if (frmSp.ShowDialog() == DialogResult.OK) { if (frmSp.SpatialReference != null) { SpatialReferenceChanged(frmSp.SpatialReference); } } } } catch (Exception ex) { MessageBox.Show(ex.Message, "消息提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void ShowMorePrj() { SpatialReferenceSelection frm = new SpatialReferenceSelection(); frm.ShowDialog(); }
private void button6_Click(object sender, EventArgs e) { SpatialReferenceSelection frm = new SpatialReferenceSelection(); frm.ShowDialog(); }