Made the Win10 share work, at least somewhat.

This commit is contained in:
Robin 2016-09-28 21:50:36 +02:00
commit 5779d2ac2b
7 changed files with 365 additions and 4 deletions

View file

@ -22,6 +22,7 @@
using System;
using System.Collections.Generic;
using Greenshot.Plugin;
using GreenshotPlugin.Core;
namespace GreenshotWin10Plugin
{
@ -48,9 +49,18 @@ namespace GreenshotWin10Plugin
throw new NotImplementedException();
}
/// <summary>
/// yields the windows 10 destinations if Windows 10 is detected
/// </summary>
/// <returns>IEnumerable with the destinations</returns>
public IEnumerable<IDestination> Destinations()
{
if (!Environment.OSVersion.IsWindows10())
{
yield break;
}
yield return new Win10OcrDestination();
yield return new Win10ShareDestination();
}
public IEnumerable<IProcessor> Processors()