Пример #1
0
        private ISpatialReference SelectPrj(string p)
        {
            SpatialReferenceSelection frm = new SpatialReferenceSelection();

            frm.ShowDialog();
            return(frm.SpatialReference);
        }
Пример #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;
     }
 }
Пример #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);
     }
 }
Пример #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);
             }
         }
     }
 }
Пример #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);
         }
     }
 }
Пример #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();
 }
Пример #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);
     }
 }
Пример #8
0
        private void ShowMorePrj()
        {
            SpatialReferenceSelection frm = new SpatialReferenceSelection();

            frm.ShowDialog();
        }
Пример #9
0
        private void button6_Click(object sender, EventArgs e)
        {
            SpatialReferenceSelection frm = new SpatialReferenceSelection();

            frm.ShowDialog();
        }