From 8f6e661a61441fc82aa079351459563a3f90f9f4 Mon Sep 17 00:00:00 2001
From: Eugene Wang <yinchun.wang@outlook.com>
Date: Mon, 13 Feb 2017 21:13:49 -0500
Subject: [PATCH] Sample tweaks.

---
 samples/Sample.WPF/App.xaml.cs                | 16 ++++++++++------
 samples/Sample.WPF/Sample.WPF.csproj          |  1 +
 samples/Sample.WPF/ViewModels/DataSourceVM.cs |  4 ++--
 src/NTwain/DataTransferredEventArgs.cs        |  2 +-
 4 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/samples/Sample.WPF/App.xaml.cs b/samples/Sample.WPF/App.xaml.cs
index 9c74199..390e581 100644
--- a/samples/Sample.WPF/App.xaml.cs
+++ b/samples/Sample.WPF/App.xaml.cs
@@ -7,12 +7,16 @@ namespace Sample.WPF
     /// Interaction logic for App.xaml
     /// </summary>
     public partial class App : Application
-	{
-		protected override void OnStartup(StartupEventArgs e)
-		{
+    {
+        public App()
+        {
             UIHooks.EnableHighDpiSupport();
+        }
+
+        protected override void OnStartup(StartupEventArgs e)
+        {
             Theme.ApplyTheme(ThemeColor.Light, Accent.Green);
-			base.OnStartup(e);
-		}
-	}
+            base.OnStartup(e);
+        }
+    }
 }
diff --git a/samples/Sample.WPF/Sample.WPF.csproj b/samples/Sample.WPF/Sample.WPF.csproj
index b72c6da..2c7f7b0 100644
--- a/samples/Sample.WPF/Sample.WPF.csproj
+++ b/samples/Sample.WPF/Sample.WPF.csproj
@@ -26,6 +26,7 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <UseVSHostingProcess>true</UseVSHostingProcess>
+    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <PlatformTarget>x64</PlatformTarget>
diff --git a/samples/Sample.WPF/ViewModels/DataSourceVM.cs b/samples/Sample.WPF/ViewModels/DataSourceVM.cs
index d9bced9..d76fc78 100644
--- a/samples/Sample.WPF/ViewModels/DataSourceVM.cs
+++ b/samples/Sample.WPF/ViewModels/DataSourceVM.cs
@@ -97,8 +97,8 @@ namespace Sample.WPF
                             report.Append(cap.Name).AppendLine(":");
                             try
                             {
-                                report.Append('\t').Append("Maybe: ").Append(cap.Supports).AppendLine();
-                                report.Append('\t').Append("Get: ");
+                                report.Append('\t').Append("Supports: ").Append(cap.Supports).AppendLine();
+                                report.Append('\t').Append("Values: ");
                                 foreach (var v in cap.Get())
                                 {
                                     report.Append(v).Append(',');
diff --git a/src/NTwain/DataTransferredEventArgs.cs b/src/NTwain/DataTransferredEventArgs.cs
index 2d0f859..d55df79 100644
--- a/src/NTwain/DataTransferredEventArgs.cs
+++ b/src/NTwain/DataTransferredEventArgs.cs
@@ -85,7 +85,7 @@ namespace NTwain
 
         /// <summary>
         /// Gets the file format if applicable.
-        /// This is only available if <see cref="TransferType"/> is <see cref="XferMech.Memory"/>.
+        /// This is only available if <see cref="TransferType"/> is <see cref="XferMech.File"/>.
         /// </summary>
         /// <value>
         /// The file format.