internal BeforeShapeEditEventArgs(_DMapEvents_BeforeShapeEditEvent args) { _args = args; if (args == null) { throw new NullReferenceException("Internal reference is null."); } }
static void _map_BeforeShapeEdit(object sender, _DMapEvents_BeforeShapeEditEvent e) { // to prevent editing of particular shapes //var sf = App.Map.get_Shapefile(e.layerHandle); //if (sf != null) //{ // if (sf.ShapefileType2D == ShpfileType.SHP_POLYLINE) // { // MessageHelper.Info("Editing of polylines isn't allowed"); // e.cancel = tkMwBoolean.blnTrue; // } //} }
private void MapBeforeShapeEdit(object sender, _DMapEvents_BeforeShapeEditEvent e) { Invoke(sender, BeforeShapeEdit, new BeforeShapeEditEventArgs(e)); }
private void _map_BeforeShapeEdit(object sender, _DMapEvents_BeforeShapeEditEvent e) { }