Esempio n. 1
0
        private ISpatialReference SelectPrj(string p)
        {
            SpatialReferenceSelection frm = new SpatialReferenceSelection();

            frm.ShowDialog();
            return(frm.SpatialReference);
        }
Esempio n. 2
0
 //更多投影
 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;
     }
 }
Esempio n. 3
0
 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);
     }
 }
Esempio n. 4
0
 void prjDef_Click(object sender, EventArgs e)
 {
     using (SpatialReferenceSelection frmSp = new SpatialReferenceSelection())
     {
         if (frmSp.ShowDialog() == DialogResult.OK)
         {
             if (frmSp.SpatialReference != null)
             {
                 Projection(frmSp.SpatialReference);
             }
         }
     }
 }
Esempio n. 5
0
 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);
         }
     }
 }
Esempio n. 6
0
 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();
 }
Esempio n. 7
0
 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);
     }
 }
Esempio n. 8
0
        private void ShowMorePrj()
        {
            SpatialReferenceSelection frm = new SpatialReferenceSelection();

            frm.ShowDialog();
        }
Esempio n. 9
0
        private void button6_Click(object sender, EventArgs e)
        {
            SpatialReferenceSelection frm = new SpatialReferenceSelection();

            frm.ShowDialog();
        }