Example #1
0
 internal ShapeValidationFailedEventArgs(_DMapEvents_ShapeValidationFailedEvent args)
 {
     _args = args;
     if (args == null)
     {
         throw new NullReferenceException("Internal reference is null.");
     }
 }
 private void _map_ShapeValidationFailed(object sender, _DMapEvents_ShapeValidationFailedEvent e)
 {
     Events.MapControl_Error error = new Events.MapControl_Error()
     {
         ErrorCode = Events.ErrorCodes.ShapeInvalid, InMethod = "_map_ShapeValidationFailed", AxMapError = e.errorMessage
     };
     On_Error(error);
 }
Example #3
0
 private void MapShapeValidationFailed(object sender, _DMapEvents_ShapeValidationFailedEvent e)
 {
     Invoke(sender, ShapeValidationFailed, new ShapeValidationFailedEventArgs(e));
 }
Example #4
0
 static void _map_ShapeValidationFailed(object sender, _DMapEvents_ShapeValidationFailedEvent e)
 {
     MessageBox.Show("Validation failed: " + e.errorMessage);
 }