From 02fe464c0fc173404771e0e61c5ac0db2a1813d3 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 7 Apr 2021 10:56:23 +0300 Subject: Several bug fixes. --- .../Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs | 11 +++++++++-- .../Visual_Studio/Tango.DragAndDrop/Tango.DragAndDrop.csproj | 6 +++++- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/Tango.DragAndDrop') diff --git a/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs b/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs index 320891c61..6f9f8a354 100644 --- a/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs +++ b/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs @@ -13,7 +13,7 @@ using System.Windows.Media.Imaging; using System.Windows.Threading; using Tango.Core; using Tango.Core.EventArguments; - +using Tango.Logging; namespace Tango.DragAndDrop { @@ -554,7 +554,14 @@ namespace Tango.DragAndDrop else { DragEnded?.Invoke(_currentDragedElement, _currentDragedElement); - DropDraggable(); + try + { + DropDraggable(); + } + catch (Exception ex) + { + LogManager.Default.Log(ex, "Error on drop draggable."); + } } } diff --git a/Software/Visual_Studio/Tango.DragAndDrop/Tango.DragAndDrop.csproj b/Software/Visual_Studio/Tango.DragAndDrop/Tango.DragAndDrop.csproj index 074b494c7..e60f07d4d 100644 --- a/Software/Visual_Studio/Tango.DragAndDrop/Tango.DragAndDrop.csproj +++ b/Software/Visual_Studio/Tango.DragAndDrop/Tango.DragAndDrop.csproj @@ -104,11 +104,15 @@ {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core + + {BC932DBD-7CDB-488C-99E4-F02CF441F55E} + Tango.Logging + - +