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); } }
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); } }
private void MapAfterShapeEdit(object sender, _DMapEvents_AfterShapeEditEvent e) { Invoke(sender, AfterShapeEdit, new AfterShapeEditEventArgs(e)); }