Пример #1
0
 internal BeforeShapeEditEventArgs(_DMapEvents_BeforeShapeEditEvent args)
 {
     _args = args;
     if (args == null)
     {
         throw new NullReferenceException("Internal reference is null.");
     }
 }
Пример #2
0
 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;
     //    }
     //}
 }
Пример #3
0
 private void MapBeforeShapeEdit(object sender, _DMapEvents_BeforeShapeEditEvent e)
 {
     Invoke(sender, BeforeShapeEdit, new BeforeShapeEditEventArgs(e));
 }
 private void _map_BeforeShapeEdit(object sender, _DMapEvents_BeforeShapeEditEvent e)
 {
 }