示例#1
0
        //TODO:待完善
        /// <summary>
        /// 右键表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void table_Click(object sender, EventArgs e)
        {
            if (Legend.SelectedLayer != -1)
            {
                AttributesForm attributesForm = new AttributesForm(axMap1, Legend, Legend.SelectedLayer);

                attributesForm.Show();
            }
        }
示例#2
0
        void axMap1_ShapeIdentified(object sender, _DMapEvents_ShapeIdentifiedEvent e)
        {
            var sf = axMap1.get_Shapefile(e.layerHandle);

            if (sf != null)
            {
                using (var form = new AttributesForm(sf, e.shapeIndex, e.layerHandle))
                {
                    form.ShowDialog(MainForm.Instance);
                }
            }
        }
 private void btnAttributesReport_Click(object sender, EventArgs e)
 {
     if (displayViaReport)
     {
         DynamicAttributesReport displayAtrributes = new DynamicAttributesReport(m_map, displaySelectedFeatures);
         displayAtrributes.Show(this as System.Windows.Forms.IWin32Window);
     }
     else
     {
         AttributesForm displayAtrributes = new AttributesForm(m_map, displaySelectedFeatures);
         displayAtrributes.Show(this as System.Windows.Forms.IWin32Window);
     }
 }
示例#4
0
 static void _map_AfterShapeEdit(object sender, _DMapEvents_AfterShapeEditEvent e)
 {
     if (e.operation == tkUndoOperation.uoAddShape)
     {
         var sf = _map.get_Shapefile(e.layerHandle);
         if (sf != null)
         {
             using (var form = new AttributesForm(sf, e.shapeIndex, e.layerHandle))
             {
                 form.ShowDialog(App.MainForm);
             }
         }
     }
     else
     {
         Debug.WriteLine("After shape edit: " + e.operation);
     }
 }