Updated IPlatformInfo to include internally used properties.

This commit is contained in:
soukoku
2015-02-18 19:21:32 -05:00
parent bace6e6323
commit bcb1ec2382
7 changed files with 163 additions and 107 deletions

View File

@@ -36,7 +36,7 @@ namespace NTwain.Internals
{
Debug.WriteLine("NTwain message loop is starting.");
_dispatcher = Dispatcher.CurrentDispatcher;
if (!PlatformInfo.__global.IsOnMono)
if (!PlatformInfo.Current.IsOnMono)
{
_hook = new WindowsHook(filter);
Handle = _hook.Handle;
@@ -75,7 +75,7 @@ namespace NTwain.Internals
{
action();
}
else if (PlatformInfo.__global.IsOnMono)
else if (PlatformInfo.Current.IsOnMono)
{
using (var man = new WrappedManualResetEvent())
{