internal AfterShapeEditEventArgs(_DMapEvents_AfterShapeEditEvent args)
 {
     _args = args;
     if (args == null)
     {
         throw new NullReferenceException("Internal reference is null.");
     }
 }
 private void _map_AfterShapeEdit(object sender, _DMapEvents_AfterShapeEditEvent e)
 {
     if (saveAndCloseWhenFinish)
     {
         StopEditingLayer(saveAndCloseWhenFinish);
     }
     else
     {
         ((ResTBPostGISLayer)CurrentEditingLayer).SaveAttributes(AxMap);
     }
 }
示例#3
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);
     }
 }
示例#4
0
 private void MapAfterShapeEdit(object sender, _DMapEvents_AfterShapeEditEvent e)
 {
     Invoke(sender, AfterShapeEdit, new AfterShapeEditEventArgs(e));
 }