private Uri Convert(string path, UriConverter converter)
 {
     UriConverter.Result result = converter.Convert(path);
     if (!result.Successful)
     {
         throw new ArgumentException();
     }
     return(result.Uri);
 }
        private void OnFilesDropped(List <string> pathNames, POINT dropPoint)
        {
            Vector2 point = new Vector2(dropPoint.x, dropPoint.y);

            foreach (string path in pathNames)
            {
                UriConverter.Result result = _uriConverter.Convert(path);
                if (result.Successful)
                {
                    OnFileDropped(result.Uri, point);
                }
                else
                {
                    displayErrorNotification(result.Error);
                }
            }
        }