private void OnPasteItemClick(object sender, ItemClickEventArgs e)
        {
            ImageSource imageSource    = null;
            var         clipboardImage = ClipboardHelper.GetPngFormClipboard() ?? ClipboardHelper.GetImageFormClipboard();

            if (clipboardImage != null)
            {
                imageSource = ImageSource.FromImage(clipboardImage);
            }
            else if (Clipboard.ContainsText(TextDataFormat.Html))
            {
                var textContent = Clipboard.GetText(TextDataFormat.Html);
                try
                {
                    imageSource = ImageSource.FromString(textContent);
                }
                catch
                {
                }
            }
            if (imageSource != null)
            {
                LoadData(ImageClipartObject.FromImageSource(imageSource));
                EditValueChanged?.Invoke(sender, e);
            }
        }
 private void OnFavoritesOpenItemClick(object sender, ItemClickEventArgs e)
 {
     using (var form = new FormFavoritesOpen())
     {
         if (form.ShowDialog() == DialogResult.OK && form.SelectedImageSource != null)
         {
             var imageSource = form.SelectedImageSource;
             LoadData(ImageClipartObject.FromImageSource(imageSource));
             EditValueChanged?.Invoke(sender, e);
         }
     }
 }