A naive and lazy implementation of mem xfer for #1.

This commit is contained in:
soukoku
2014-04-11 19:25:48 -04:00
parent d3a50099a4
commit efe9b469ba
6 changed files with 74 additions and 63 deletions

View File

@@ -67,9 +67,9 @@ namespace Tester.WPF
{
Image = e.NativeData.GetWPFBitmap();
}
else if (!string.IsNullOrEmpty(e.FilePath))
else if (!string.IsNullOrEmpty(e.FileDataPath))
{
var img = new BitmapImage(new Uri(e.FilePath));
var img = new BitmapImage(new Uri(e.FileDataPath));
Image = img;
}
base.OnDataTransferred(e);

View File

@@ -76,9 +76,9 @@ namespace Tester.Winform
if (img != null)
pictureBox1.Image = img;
}
else if (!string.IsNullOrEmpty(e.FilePath))
else if (!string.IsNullOrEmpty(e.FileDataPath))
{
var img = new Bitmap(e.FilePath);
var img = new Bitmap(e.FileDataPath);
pictureBox1.Image = img;
}
};