void OnDataRequested(DataTransferManager sender, SettableDataRequestedEventArgs args)
        {
            if (DataToShare == null) return;

            if (DataToShare is Uri)
            {
                var message = new ShareUriMessage((Uri)DataToShare, sender, args);
                _hub.Send(message);
                return;
            }

            if (DataToShare is ImageResult)
            {
                var message = new ShareImageResultsMessage((ImageResult)DataToShare, sender, args);
                _hub.Send(message);
                return;
            }
        }
        void OnDataRequested(DataTransferManager sender, SettableDataRequestedEventArgs args)
        {
            if (DataToShare == null)
            {
                return;
            }

            if (DataToShare is Uri)
            {
                var message = new ShareUriMessage((Uri)DataToShare, sender, args);
                _hub.Send(message);
                return;
            }

            if (DataToShare is ImageResult)
            {
                var message = new ShareImageResultsMessage((ImageResult)DataToShare, sender, args);
                _hub.Send(message);
                return;
            }
        }