mirror of
https://github.com/greenshot/greenshot
synced 2025-08-26 16:16:06 -07:00
Made the ExternalCommand work, only the configuration is still missing. Also did some cleanup and refactoring.
This commit is contained in:
parent
e73301bade
commit
1b11573bc1
109 changed files with 911 additions and 757 deletions
|
@ -1,7 +1,7 @@
|
|||
using Autofac;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.Box.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.Box
|
||||
{
|
||||
|
|
|
@ -39,7 +39,7 @@ using Dapplo.Log;
|
|||
using Dapplo.Utils;
|
||||
using Greenshot.Addon.Box.Entities;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Extensions;
|
||||
|
|
|
@ -46,29 +46,29 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.JsonNet" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.OAuth" version="0.8.35" targetFramework="net452" />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Autofac;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.Confluence.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.Confluence
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ using Dapplo.Confluence;
|
|||
using Dapplo.Confluence.Entities;
|
||||
using Dapplo.Log;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
|
|
@ -65,29 +65,29 @@
|
|||
<Reference Include="Costura, Version=2.0.1.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Costura.Fody.2.0.1\lib\net452\Costura.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Confluence, Version=0.7.19.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Confluence.0.7.19\lib\net45\Dapplo.Confluence.dll</HintPath>
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Costura.Fody" version="2.0.1" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Confluence" version="0.7.19" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.JsonSimple" version="0.8.35" targetFramework="net452" />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Autofac;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.Dropbox.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.Dropbox
|
||||
{
|
||||
|
|
|
@ -39,7 +39,7 @@ using Dapplo.Log;
|
|||
using Dapplo.Utils;
|
||||
using Greenshot.Addon.Dropbox.Entities;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Extensions;
|
||||
|
|
|
@ -58,29 +58,29 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.JsonNet" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.OAuth" version="0.8.35" targetFramework="net452" />
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
using Dapplo.Addons;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.ExternalCommand.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.ExternalCommand
|
||||
{
|
||||
|
@ -12,8 +12,9 @@ namespace Greenshot.Addon.ExternalCommand
|
|||
protected override void Load(ContainerBuilder builder)
|
||||
{
|
||||
builder
|
||||
.RegisterType<ExternalCommandStartup>()
|
||||
.RegisterType<ExternalCommandDestinationProvider>()
|
||||
.As<IStartup>()
|
||||
.As<IDestinationProvider>()
|
||||
.SingleInstance();
|
||||
builder
|
||||
.RegisterType<ExternalCommandConfigViewModel>()
|
||||
|
|
|
@ -33,7 +33,7 @@ using System.Threading;
|
|||
using Dapplo.Ini;
|
||||
using Dapplo.Log;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Addons.Interfaces.Plugin;
|
||||
|
@ -42,10 +42,10 @@ using Greenshot.Addons.Interfaces.Plugin;
|
|||
|
||||
namespace Greenshot.Addon.ExternalCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// Description of OCRDestination.
|
||||
/// </summary>
|
||||
public class ExternalCommandDestination : AbstractDestination
|
||||
/// <summary>
|
||||
/// ExternalCommandDestination provides a destination to export to an external command
|
||||
/// </summary>
|
||||
public class ExternalCommandDestination : AbstractDestination
|
||||
{
|
||||
private static readonly LogSource Log = new LogSource();
|
||||
|
||||
|
@ -83,41 +83,43 @@ namespace Greenshot.Addon.ExternalCommand
|
|||
var outputSettings = new SurfaceOutputSettings();
|
||||
outputSettings.PreventGreenshotFormat();
|
||||
|
||||
if (_presetCommand != null)
|
||||
{
|
||||
if (!Config.RunInbackground.ContainsKey(_presetCommand))
|
||||
{
|
||||
Config.RunInbackground.Add(_presetCommand, true);
|
||||
}
|
||||
var runInBackground = Config.RunInbackground[_presetCommand];
|
||||
var fullPath = captureDetails.Filename;
|
||||
if (fullPath == null)
|
||||
{
|
||||
fullPath = ImageOutput.SaveNamedTmpFile(surface, captureDetails, outputSettings);
|
||||
}
|
||||
if (_presetCommand == null)
|
||||
{
|
||||
return exportInformation;
|
||||
}
|
||||
|
||||
if (runInBackground)
|
||||
{
|
||||
var commandThread = new Thread(() =>
|
||||
{
|
||||
CallExternalCommand(exportInformation, fullPath, out _, out _);
|
||||
ProcessExport(exportInformation, surface);
|
||||
})
|
||||
{
|
||||
Name = "Running " + _presetCommand,
|
||||
IsBackground = true
|
||||
};
|
||||
commandThread.SetApartmentState(ApartmentState.STA);
|
||||
commandThread.Start();
|
||||
exportInformation.ExportMade = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
CallExternalCommand(exportInformation, fullPath, out _, out _);
|
||||
ProcessExport(exportInformation, surface);
|
||||
}
|
||||
}
|
||||
return exportInformation;
|
||||
if (!Config.RunInbackground.ContainsKey(_presetCommand))
|
||||
{
|
||||
Config.RunInbackground.Add(_presetCommand, true);
|
||||
}
|
||||
var runInBackground = Config.RunInbackground[_presetCommand];
|
||||
var fullPath = captureDetails.Filename;
|
||||
if (fullPath == null)
|
||||
{
|
||||
fullPath = ImageOutput.SaveNamedTmpFile(surface, captureDetails, outputSettings);
|
||||
}
|
||||
|
||||
if (runInBackground)
|
||||
{
|
||||
var commandThread = new Thread(() =>
|
||||
{
|
||||
CallExternalCommand(exportInformation, fullPath, out _, out _);
|
||||
ProcessExport(exportInformation, surface);
|
||||
})
|
||||
{
|
||||
Name = "Running " + _presetCommand,
|
||||
IsBackground = true
|
||||
};
|
||||
commandThread.SetApartmentState(ApartmentState.STA);
|
||||
commandThread.Start();
|
||||
exportInformation.ExportMade = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
CallExternalCommand(exportInformation, fullPath, out _, out _);
|
||||
ProcessExport(exportInformation, surface);
|
||||
}
|
||||
return exportInformation;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -137,24 +139,29 @@ namespace Greenshot.Addon.ExternalCommand
|
|||
if (CallExternalCommand(_presetCommand, fullPath, out output, out error) == 0)
|
||||
{
|
||||
exportInformation.ExportMade = true;
|
||||
if (!string.IsNullOrEmpty(output))
|
||||
{
|
||||
var uriMatches = UriRegexp.Matches(output);
|
||||
// Place output on the clipboard before the URI, so if one is found this overwrites
|
||||
if (Config.OutputToClipboard)
|
||||
{
|
||||
ClipboardHelper.SetClipboardData(output);
|
||||
}
|
||||
if (uriMatches.Count > 0)
|
||||
{
|
||||
exportInformation.Uri = uriMatches[0].Groups[1].Value;
|
||||
Log.Info().WriteLine("Got URI : {0} ", exportInformation.Uri);
|
||||
if (Config.UriToClipboard)
|
||||
{
|
||||
ClipboardHelper.SetClipboardData(exportInformation.Uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (string.IsNullOrEmpty(output))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var uriMatches = UriRegexp.Matches(output);
|
||||
// Place output on the clipboard before the URI, so if one is found this overwrites
|
||||
if (Config.OutputToClipboard)
|
||||
{
|
||||
ClipboardHelper.SetClipboardData(output);
|
||||
}
|
||||
|
||||
if (uriMatches.Count <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
exportInformation.Uri = uriMatches[0].Groups[1].Value;
|
||||
Log.Info().WriteLine("Got URI : {0} ", exportInformation.Uri);
|
||||
if (Config.UriToClipboard)
|
||||
{
|
||||
ClipboardHelper.SetClipboardData(exportInformation.Uri);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -221,56 +228,57 @@ namespace Greenshot.Addon.ExternalCommand
|
|||
var arguments = Config.Argument[commando];
|
||||
output = null;
|
||||
error = null;
|
||||
if (!string.IsNullOrEmpty(commandline))
|
||||
{
|
||||
using (var process = new Process())
|
||||
{
|
||||
// Fix variables
|
||||
commandline = FilenameHelper.FillVariables(commandline, true);
|
||||
commandline = FilenameHelper.FillCmdVariables(commandline);
|
||||
if (string.IsNullOrEmpty(commandline))
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
arguments = FilenameHelper.FillVariables(arguments, false);
|
||||
arguments = FilenameHelper.FillCmdVariables(arguments, false);
|
||||
using (var process = new Process())
|
||||
{
|
||||
// Fix variables
|
||||
commandline = FilenameHelper.FillVariables(commandline, true);
|
||||
commandline = FilenameHelper.FillCmdVariables(commandline);
|
||||
|
||||
process.StartInfo.FileName = FilenameHelper.FillCmdVariables(commandline);
|
||||
process.StartInfo.Arguments = FormatArguments(arguments, fullPath);
|
||||
process.StartInfo.UseShellExecute = false;
|
||||
if (Config.RedirectStandardOutput)
|
||||
{
|
||||
process.StartInfo.RedirectStandardOutput = true;
|
||||
}
|
||||
if (Config.RedirectStandardError)
|
||||
{
|
||||
process.StartInfo.RedirectStandardError = true;
|
||||
}
|
||||
if (verb != null)
|
||||
{
|
||||
process.StartInfo.Verb = verb;
|
||||
}
|
||||
Log.Info().WriteLine("Starting : {0} {1}", process.StartInfo.FileName, process.StartInfo.Arguments);
|
||||
process.Start();
|
||||
process.WaitForExit();
|
||||
if (Config.RedirectStandardOutput)
|
||||
{
|
||||
output = process.StandardOutput.ReadToEnd();
|
||||
if (Config.ShowStandardOutputInLog && output.Trim().Length > 0)
|
||||
{
|
||||
Log.Info().WriteLine("Output:\n{0}", output);
|
||||
}
|
||||
}
|
||||
if (Config.RedirectStandardError)
|
||||
{
|
||||
error = process.StandardError.ReadToEnd();
|
||||
if (error.Trim().Length > 0)
|
||||
{
|
||||
Log.Warn().WriteLine("Error:\n{0}", error);
|
||||
}
|
||||
}
|
||||
Log.Info().WriteLine("Finished : {0} {1}", process.StartInfo.FileName, process.StartInfo.Arguments);
|
||||
return process.ExitCode;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
arguments = FilenameHelper.FillVariables(arguments, false);
|
||||
arguments = FilenameHelper.FillCmdVariables(arguments, false);
|
||||
|
||||
process.StartInfo.FileName = FilenameHelper.FillCmdVariables(commandline);
|
||||
process.StartInfo.Arguments = FormatArguments(arguments, fullPath);
|
||||
process.StartInfo.UseShellExecute = false;
|
||||
if (Config.RedirectStandardOutput)
|
||||
{
|
||||
process.StartInfo.RedirectStandardOutput = true;
|
||||
}
|
||||
if (Config.RedirectStandardError)
|
||||
{
|
||||
process.StartInfo.RedirectStandardError = true;
|
||||
}
|
||||
if (verb != null)
|
||||
{
|
||||
process.StartInfo.Verb = verb;
|
||||
}
|
||||
Log.Info().WriteLine("Starting : {0} {1}", process.StartInfo.FileName, process.StartInfo.Arguments);
|
||||
process.Start();
|
||||
process.WaitForExit();
|
||||
if (Config.RedirectStandardOutput)
|
||||
{
|
||||
output = process.StandardOutput.ReadToEnd();
|
||||
if (Config.ShowStandardOutputInLog && output.Trim().Length > 0)
|
||||
{
|
||||
Log.Info().WriteLine("Output:\n{0}", output);
|
||||
}
|
||||
}
|
||||
if (Config.RedirectStandardError)
|
||||
{
|
||||
error = process.StandardError.ReadToEnd();
|
||||
if (error.Trim().Length > 0)
|
||||
{
|
||||
Log.Warn().WriteLine("Error:\n{0}", error);
|
||||
}
|
||||
}
|
||||
Log.Info().WriteLine("Finished : {0} {1}", process.StartInfo.FileName, process.StartInfo.Arguments);
|
||||
return process.ExitCode;
|
||||
}
|
||||
}
|
||||
|
||||
public static string FormatArguments(string arguments, string fullpath)
|
||||
|
|
|
@ -23,13 +23,14 @@
|
|||
|
||||
#region Usings
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dapplo.Addons;
|
||||
using Dapplo.Log;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
|
||||
#endregion
|
||||
|
@ -37,27 +38,31 @@ using Greenshot.Addons.Core;
|
|||
namespace Greenshot.Addon.ExternalCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// TODO: Somehow generate the external command destinations
|
||||
/// Generate the external command destinations
|
||||
/// </summary>
|
||||
public sealed class ExternalCommandStartup : IStartup
|
||||
public sealed class ExternalCommandDestinationProvider : IStartup, IDestinationProvider
|
||||
{
|
||||
private static readonly LogSource Log = new LogSource();
|
||||
private readonly IExternalCommandConfiguration _externalCommandConfig;
|
||||
private readonly ICoreConfiguration _coreConfiguration;
|
||||
private readonly IGreenshotLanguage _greenshotLanguage;
|
||||
|
||||
public ExternalCommandStartup(IExternalCommandConfiguration externalCommandConfiguration,
|
||||
public ExternalCommandDestinationProvider(
|
||||
IExternalCommandConfiguration externalCommandConfiguration,
|
||||
ICoreConfiguration coreConfiguration,
|
||||
IGreenshotLanguage greenshotLanguage)
|
||||
{
|
||||
_externalCommandConfig = externalCommandConfiguration;
|
||||
_coreConfiguration = coreConfiguration;
|
||||
_greenshotLanguage = greenshotLanguage;
|
||||
|
||||
externalCommandConfiguration.AfterLoad();
|
||||
}
|
||||
|
||||
public IEnumerable<IDestination> Destinations()
|
||||
public IEnumerable<Lazy<IDestination, DestinationAttribute>> Provide()
|
||||
{
|
||||
return _externalCommandConfig.Commands.Select(command => new ExternalCommandDestination(command, _coreConfiguration, _greenshotLanguage));
|
||||
return _externalCommandConfig.Commands
|
||||
.Select(command => new Lazy<IDestination, DestinationAttribute>(() => new ExternalCommandDestination(command, _coreConfiguration, _greenshotLanguage), new DestinationAttribute(command)));
|
||||
}
|
||||
|
||||
|
|
@ -58,29 +58,29 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Ini, Version=0.5.27.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Ini.0.5.27\lib\net45\Dapplo.Ini.dll</HintPath>
|
||||
|
@ -160,7 +160,7 @@
|
|||
<Compile Include="ExternalCommandForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ExternalCommandStartup.cs" />
|
||||
<Compile Include="ExternalCommandDestinationProvider.cs" />
|
||||
<Compile Include="IExternalCommandLanguage.cs" />
|
||||
<Compile Include="IconCache.cs" />
|
||||
<Compile Include="ExternalCommandAutofacModule.cs" />
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
<package id="Dapplo.InterfaceImpl" version="0.2.12" targetFramework="net452" />
|
||||
<package id="Dapplo.Language" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Autofac;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.Flickr.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.Flickr
|
||||
{
|
||||
|
|
|
@ -41,7 +41,7 @@ using Dapplo.HttpExtensions.Listener;
|
|||
using Dapplo.HttpExtensions.OAuth;
|
||||
using Dapplo.Log;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Extensions;
|
||||
|
|
|
@ -58,29 +58,29 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.OAuth" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Autofac;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.GooglePhotos.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.GooglePhotos
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ using Dapplo.HttpExtensions.OAuth;
|
|||
using Dapplo.Log;
|
||||
using Dapplo.Utils;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Extensions;
|
||||
|
|
|
@ -44,29 +44,29 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.OAuth" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -63,29 +63,29 @@
|
|||
<Reference Include="ControlzEx, Version=3.0.2.4, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ControlzEx.3.0.2.4\lib\net45\ControlzEx.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Autofac;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.Imgur.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.Imgur
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ using Dapplo.Windows.Extensions;
|
|||
using Greenshot.Addon.Imgur.Entities;
|
||||
using Greenshot.Addon.Imgur.ViewModels;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="ControlzEx" version="3.0.2.4" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.JsonNet" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.OAuth" version="0.8.35" targetFramework="net452" />
|
||||
|
|
|
@ -63,29 +63,29 @@
|
|||
<Reference Include="Costura, Version=2.0.1.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Costura.Fody.2.0.1\lib\net452\Costura.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
using Dapplo.CaliburnMicro;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.Jira.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.Jira
|
||||
{
|
||||
|
|
|
@ -35,7 +35,7 @@ using Dapplo.Jira.Entities;
|
|||
using Dapplo.Log;
|
||||
using Greenshot.Addon.Jira.ViewModels;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Costura.Fody" version="2.0.1" targetFramework="net452" developmentDependency="true" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.JsonNet" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.OAuth" version="0.8.35" targetFramework="net452" />
|
||||
|
|
|
@ -3,7 +3,7 @@ using Dapplo.CaliburnMicro.Configuration;
|
|||
using Greenshot.Addon.LegacyEditor.Drawing;
|
||||
using Greenshot.Addon.LegacyEditor.Forms;
|
||||
using Greenshot.Addon.LegacyEditor.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
||||
namespace Greenshot.Addon.LegacyEditor
|
||||
|
|
|
@ -29,7 +29,7 @@ using System.Drawing;
|
|||
using System.Linq;
|
||||
using Dapplo.Log;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Addons.Interfaces.Forms;
|
||||
|
|
|
@ -45,7 +45,7 @@ using Greenshot.Addon.LegacyEditor.Controls;
|
|||
using Greenshot.Addon.LegacyEditor.Drawing;
|
||||
using Greenshot.Addon.LegacyEditor.Drawing.Fields;
|
||||
using Greenshot.Addon.LegacyEditor.Drawing.Fields.Binding;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Extensions;
|
||||
|
@ -80,19 +80,19 @@ namespace Greenshot.Addon.LegacyEditor.Forms
|
|||
private BitmapScaleHandler<IDestination> _destinationScaleHandler;
|
||||
private readonly IDisposable _clipboardSubscription;
|
||||
private readonly EditorFactory _editorFactory;
|
||||
private readonly IEnumerable<Lazy<IDestination, DestinationAttribute>> _destinations;
|
||||
private readonly DestinationHolder _destinationHolder;
|
||||
private CompositeDisposable _disposables;
|
||||
|
||||
public ImageEditorForm(
|
||||
IEditorConfiguration editorConfiguration,
|
||||
IEditorLanguage editorLanguage,
|
||||
EditorFactory editorFactory,
|
||||
IEnumerable<Lazy<IDestination, DestinationAttribute>> destinations)
|
||||
DestinationHolder destinationHolder)
|
||||
{
|
||||
_editorConfiguration = editorConfiguration;
|
||||
_editorLanguage = editorLanguage;
|
||||
_editorFactory = editorFactory;
|
||||
_destinations = destinations;
|
||||
_destinationHolder = destinationHolder;
|
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
|
@ -378,7 +378,7 @@ namespace Greenshot.Addon.LegacyEditor.Forms
|
|||
await Task.Run(() =>
|
||||
{
|
||||
// Create export buttons
|
||||
foreach (var destination in _destinations
|
||||
foreach (var destination in _destinationHolder.AllDestinations
|
||||
.Where(destination => destination.Metadata.Priority > 2 && !IgnoreDestinations.Contains(destination.Metadata.Designation) && destination.Value.IsActive)
|
||||
.OrderBy(destination => destination.Metadata.Priority).ThenBy(destination => destination.Value.Description)
|
||||
.Select(d => d.Value))
|
||||
|
@ -519,7 +519,7 @@ namespace Greenshot.Addon.LegacyEditor.Forms
|
|||
ClearItems(fileStripMenuItem.DropDownItems);
|
||||
|
||||
// Add the destinations
|
||||
foreach (var destination in _destinations
|
||||
foreach (var destination in _destinationHolder.AllDestinations
|
||||
.Where(destination => !IgnoreDestinations.Contains(destination.Metadata.Designation) && destination.Value.IsActive)
|
||||
.OrderBy(destination => destination.Metadata.Priority).ThenBy(destination => destination.Value.Description)
|
||||
.Select(d => d.Value))
|
||||
|
@ -1239,12 +1239,12 @@ namespace Greenshot.Addon.LegacyEditor.Forms
|
|||
{
|
||||
destinationDesignation = "FileDialog";
|
||||
}
|
||||
_destinations.Find(destinationDesignation)?.ExportCaptureAsync(true, _surface, _surface.CaptureDetails);
|
||||
_destinationHolder.AllDestinations.Find(destinationDesignation)?.ExportCaptureAsync(true, _surface, _surface.CaptureDetails);
|
||||
}
|
||||
|
||||
private void BtnClipboardClick(object sender, EventArgs e)
|
||||
{
|
||||
_destinations.Find("Clipboard")?.ExportCaptureAsync(true, _surface, _surface.CaptureDetails);
|
||||
_destinationHolder.AllDestinations.Find("Clipboard")?.ExportCaptureAsync(true, _surface, _surface.CaptureDetails);
|
||||
}
|
||||
|
||||
private void BtnPrintClick(object sender, EventArgs e)
|
||||
|
@ -1252,7 +1252,7 @@ namespace Greenshot.Addon.LegacyEditor.Forms
|
|||
// The BeginInvoke is a solution for the printdialog not having focus
|
||||
BeginInvoke((MethodInvoker) delegate
|
||||
{
|
||||
_destinations.Find("Printer")?.ExportCaptureAsync(true, _surface, _surface.CaptureDetails);
|
||||
_destinationHolder.AllDestinations.Find("Printer")?.ExportCaptureAsync(true, _surface, _surface.CaptureDetails);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -1708,9 +1708,7 @@ namespace Greenshot.Addon.LegacyEditor.Forms
|
|||
// Go through the destinations to check the EditorShortcut Keys
|
||||
// this way the menu entries don't need to be enabled.
|
||||
// This also fixes bugs #3526974 & #3527020
|
||||
foreach (var destination in _destinations.Where(destination => destination.Value.IsActive)
|
||||
.OrderBy(destination => destination.Metadata.Priority).ThenBy(destination => destination.Value.Description)
|
||||
.Select(d => d.Value))
|
||||
foreach (var destination in _destinationHolder.SortedActiveDestinations)
|
||||
{
|
||||
if (destination.EditorShortcutKeys != keys)
|
||||
{
|
||||
|
|
|
@ -36,29 +36,29 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Ini, Version=0.5.27.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Ini.0.5.27\lib\net45\Dapplo.Ini.dll</HintPath>
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
<package id="Dapplo.InterfaceImpl" version="0.2.12" targetFramework="net452" />
|
||||
<package id="Dapplo.Language" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -61,29 +61,29 @@
|
|||
<Reference Include="ControlzEx, Version=3.0.2.4, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ControlzEx.3.0.2.4\lib\net45\ControlzEx.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Autofac;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.Lutim.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.Lutim
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ using Dapplo.Addons;
|
|||
using Dapplo.Log;
|
||||
using Greenshot.Addon.Lutim.Entities;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
@ -36,7 +36,7 @@ using Greenshot.Gfx;
|
|||
|
||||
namespace Greenshot.Addon.Lutim {
|
||||
/// <summary>
|
||||
/// Description of LutimDestination.
|
||||
/// This is the destination for Lutim
|
||||
/// </summary>
|
||||
[Destination("Lutim")]
|
||||
public class LutimDestination : AbstractDestination
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="ControlzEx" version="3.0.2.4" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.JsonNet" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -58,29 +58,29 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Ini, Version=0.5.27.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Ini.0.5.27\lib\net45\Dapplo.Ini.dll</HintPath>
|
||||
|
|
|
@ -31,7 +31,7 @@ using System.Reflection;
|
|||
using System.Windows.Forms;
|
||||
using Dapplo.Log;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Core.Enums;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
using Autofac;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.OCR
|
||||
{
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
<package id="Dapplo.InterfaceImpl" version="0.2.12" targetFramework="net452" />
|
||||
<package id="Dapplo.Language" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -29,7 +29,7 @@ using System.IO;
|
|||
using System.Text.RegularExpressions;
|
||||
using Greenshot.Addon.Office.OfficeExport;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Addons.Interfaces.Plugin;
|
||||
|
@ -41,7 +41,7 @@ namespace Greenshot.Addon.Office.Destinations
|
|||
/// <summary>
|
||||
/// Description of PowerpointDestination.
|
||||
/// </summary>
|
||||
[Destination("Excel", 5)]
|
||||
[Destination("Excel", DestinationOrder.Excel)]
|
||||
public class ExcelDestination : AbstractDestination
|
||||
{
|
||||
private const int IconApplication = 0;
|
||||
|
@ -61,7 +61,7 @@ namespace Greenshot.Addon.Office.Destinations
|
|||
}
|
||||
}
|
||||
|
||||
public ExcelDestination(string workbookName,
|
||||
protected ExcelDestination(string workbookName,
|
||||
ICoreConfiguration coreConfiguration,
|
||||
IGreenshotLanguage greenshotLanguage
|
||||
) : this(coreConfiguration, greenshotLanguage)
|
||||
|
|
|
@ -33,7 +33,7 @@ using Dapplo.Log;
|
|||
using Greenshot.Addon.Office.OfficeExport;
|
||||
using Greenshot.Addon.Office.OfficeInterop;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
||||
|
@ -41,7 +41,7 @@ using Greenshot.Addons.Interfaces;
|
|||
|
||||
namespace Greenshot.Addon.Office.Destinations
|
||||
{
|
||||
[Destination("OneNote", 4)]
|
||||
[Destination("OneNote", DestinationOrder.OneNote)]
|
||||
public class OneNoteDestination : AbstractDestination
|
||||
{
|
||||
private const int IconApplication = 0;
|
||||
|
@ -61,7 +61,7 @@ namespace Greenshot.Addon.Office.Destinations
|
|||
}
|
||||
}
|
||||
|
||||
public OneNoteDestination(OneNotePage page,
|
||||
protected OneNoteDestination(OneNotePage page,
|
||||
ICoreConfiguration coreConfiguration,
|
||||
IGreenshotLanguage greenshotLanguage
|
||||
) : this(coreConfiguration, greenshotLanguage)
|
||||
|
|
|
@ -33,7 +33,7 @@ using Dapplo.Log;
|
|||
using Greenshot.Addon.Office.OfficeExport;
|
||||
using Greenshot.Addon.Office.OfficeInterop;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Addons.Interfaces.Plugin;
|
||||
|
@ -45,27 +45,29 @@ namespace Greenshot.Addon.Office.Destinations
|
|||
/// <summary>
|
||||
/// Description of OutlookDestination.
|
||||
/// </summary>
|
||||
[Destination("Outlook", 3)]
|
||||
[Destination("Outlook", DestinationOrder.Outlook)]
|
||||
public class OutlookDestination : AbstractDestination
|
||||
{
|
||||
private const int IconApplication = 0;
|
||||
private const int IconApplication = 0;
|
||||
private const int IconMeeting = 2;
|
||||
private const string MapiClient = "Microsoft Outlook";
|
||||
private static readonly LogSource Log = new LogSource();
|
||||
|
||||
private readonly IOfficeConfiguration _officeConfiguration;
|
||||
private static readonly Bitmap MailIcon = GreenshotResources.GetBitmap("Email.Image");
|
||||
private static readonly IOfficeConfiguration OfficeConfig = IniConfig.Current.Get<IOfficeConfiguration>();
|
||||
private readonly string _exePath;
|
||||
private readonly bool _isActiveFlag;
|
||||
private readonly string _outlookInspectorCaption;
|
||||
private readonly OlObjectClass _outlookInspectorType;
|
||||
|
||||
public OutlookDestination(
|
||||
IOfficeConfiguration officeConfiguration,
|
||||
ICoreConfiguration coreConfiguration,
|
||||
IGreenshotLanguage greenshotLanguage
|
||||
) : base(coreConfiguration, greenshotLanguage)
|
||||
{
|
||||
if (EmailConfigHelper.HasOutlook())
|
||||
_officeConfiguration = officeConfiguration;
|
||||
if (EmailConfigHelper.HasOutlook())
|
||||
{
|
||||
_isActiveFlag = true;
|
||||
}
|
||||
|
@ -80,12 +82,13 @@ namespace Greenshot.Addon.Office.Destinations
|
|||
}
|
||||
}
|
||||
|
||||
public OutlookDestination(
|
||||
protected OutlookDestination(
|
||||
string outlookInspectorCaption,
|
||||
OlObjectClass outlookInspectorType,
|
||||
IOfficeConfiguration officeConfiguration,
|
||||
ICoreConfiguration coreConfiguration,
|
||||
IGreenshotLanguage greenshotLanguage
|
||||
) : this(coreConfiguration, greenshotLanguage)
|
||||
) : this(officeConfiguration, coreConfiguration, greenshotLanguage)
|
||||
{
|
||||
_outlookInspectorCaption = outlookInspectorCaption;
|
||||
_outlookInspectorType = outlookInspectorType;
|
||||
|
@ -122,7 +125,7 @@ namespace Greenshot.Addon.Office.Destinations
|
|||
}
|
||||
foreach (var inspectorCaption in inspectorCaptions.Keys)
|
||||
{
|
||||
yield return new OutlookDestination(inspectorCaption, inspectorCaptions[inspectorCaption], CoreConfiguration, GreenshotLanguage);
|
||||
yield return new OutlookDestination(inspectorCaption, inspectorCaptions[inspectorCaption], _officeConfiguration, CoreConfiguration, GreenshotLanguage);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -175,11 +178,11 @@ namespace Greenshot.Addon.Office.Destinations
|
|||
{
|
||||
var destinations = new List<IDestination>
|
||||
{
|
||||
new OutlookDestination(CoreConfiguration, GreenshotLanguage)
|
||||
new OutlookDestination(_officeConfiguration, CoreConfiguration, GreenshotLanguage)
|
||||
};
|
||||
foreach (var inspectorCaption in inspectorCaptions.Keys)
|
||||
{
|
||||
destinations.Add(new OutlookDestination(inspectorCaption, inspectorCaptions[inspectorCaption], CoreConfiguration, GreenshotLanguage));
|
||||
destinations.Add(new OutlookDestination(inspectorCaption, inspectorCaptions[inspectorCaption], _officeConfiguration, CoreConfiguration, GreenshotLanguage));
|
||||
}
|
||||
// Return the ExportInformation from the picker without processing, as this indirectly comes from us self
|
||||
return ShowPickerMenu(false, surface, captureDetails, destinations);
|
||||
|
@ -187,9 +190,9 @@ namespace Greenshot.Addon.Office.Destinations
|
|||
}
|
||||
else
|
||||
{
|
||||
exportInformation.ExportMade = OutlookEmailExporter.ExportToOutlook(OfficeConfig.OutlookEmailFormat, tmpFile,
|
||||
FilenameHelper.FillPattern(OfficeConfig.EmailSubjectPattern, captureDetails, false), attachmentName, OfficeConfig.EmailTo, OfficeConfig.EmailCC,
|
||||
OfficeConfig.EmailBCC, null);
|
||||
exportInformation.ExportMade = OutlookEmailExporter.ExportToOutlook(_officeConfiguration.OutlookEmailFormat, tmpFile,
|
||||
FilenameHelper.FillPattern(_officeConfiguration.EmailSubjectPattern, captureDetails, false), attachmentName, _officeConfiguration.EmailTo, _officeConfiguration.EmailCC,
|
||||
_officeConfiguration.EmailBCC, null);
|
||||
}
|
||||
}
|
||||
ProcessExport(exportInformation, surface);
|
||||
|
|
|
@ -30,7 +30,7 @@ using System.Linq;
|
|||
using System.Text.RegularExpressions;
|
||||
using Greenshot.Addon.Office.OfficeExport;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Addons.Interfaces.Plugin;
|
||||
|
@ -42,7 +42,7 @@ namespace Greenshot.Addon.Office.Destinations
|
|||
/// <summary>
|
||||
/// Description of PowerpointDestination.
|
||||
/// </summary>
|
||||
[Destination("Powerpoint", 4)]
|
||||
[Destination("Powerpoint", DestinationOrder.Powerpoint)]
|
||||
public class PowerpointDestination : AbstractDestination
|
||||
{
|
||||
private const int IconApplication = 0;
|
||||
|
|
|
@ -32,7 +32,7 @@ using System.Text.RegularExpressions;
|
|||
using Dapplo.Log;
|
||||
using Greenshot.Addon.Office.OfficeExport;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Addons.Interfaces.Plugin;
|
||||
|
@ -44,7 +44,7 @@ namespace Greenshot.Addon.Office.Destinations
|
|||
/// <summary>
|
||||
/// Description of EmailDestination.
|
||||
/// </summary>
|
||||
[Destination("Word", 4)]
|
||||
[Destination("Word", DestinationOrder.Word)]
|
||||
public class WordDestination : AbstractDestination
|
||||
{
|
||||
private const int IconApplication = 0;
|
||||
|
|
|
@ -44,29 +44,29 @@
|
|||
<Reference Include="Costura, Version=2.0.1.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Costura.Fody.2.0.1\lib\net452\Costura.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Ini, Version=0.5.27.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Ini.0.5.27\lib\net45\Dapplo.Ini.dll</HintPath>
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Costura.Fody" version="2.0.1" targetFramework="net452" developmentDependency="true" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
<package id="Dapplo.InterfaceImpl" version="0.2.12" targetFramework="net452" />
|
||||
<package id="Dapplo.Language" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -57,29 +57,29 @@
|
|||
<Reference Include="ControlzEx, Version=3.0.2.4, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ControlzEx.3.0.2.4\lib\net45\ControlzEx.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Autofac;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.OneDrive.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.OneDrive
|
||||
{
|
||||
|
|
|
@ -39,7 +39,7 @@ using Dapplo.Log;
|
|||
using Dapplo.Utils;
|
||||
using Greenshot.Addon.OneDrive.Entities;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Extensions;
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="ControlzEx" version="3.0.2.4" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.JsonNet" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.OAuth" version="0.8.35" targetFramework="net452" />
|
||||
|
|
|
@ -58,29 +58,29 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Autofac;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.Photobucket.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.Photobucket
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ using Dapplo.HttpExtensions.OAuth;
|
|||
using Dapplo.Log;
|
||||
using Dapplo.Utils;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Extensions;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.OAuth" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -57,29 +57,29 @@
|
|||
<Reference Include="ControlzEx, Version=3.0.2.4, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ControlzEx.3.0.2.4\lib\net45\ControlzEx.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Autofac;
|
||||
using Dapplo.CaliburnMicro.Configuration;
|
||||
using Greenshot.Addon.Tfs.ViewModels;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.Tfs
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ using Dapplo.Addons;
|
|||
using Dapplo.Log;
|
||||
using Greenshot.Addon.Tfs.Entities;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="ControlzEx" version="3.0.2.4" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.JsonNet" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -54,17 +54,17 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.8-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.8-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.31.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.31-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.31.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.31-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Ini, Version=0.5.27.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Ini.0.5.27\lib\net45\Dapplo.Ini.dll</HintPath>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
using Autofac;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addon.Win10
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ using Windows.Graphics.Imaging;
|
|||
using Windows.Media.Ocr;
|
||||
using Dapplo.Log;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Addons.Interfaces.Plugin;
|
||||
|
|
|
@ -34,7 +34,7 @@ using Dapplo.Log;
|
|||
using Dapplo.Windows.Messages;
|
||||
using Greenshot.Addon.Win10.Native;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Core.Enums;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.8-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.8-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.31-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.31-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
<package id="Dapplo.InterfaceImpl" version="0.2.12" targetFramework="net452" />
|
||||
<package id="Dapplo.Language" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -1,4 +1,28 @@
|
|||
using Autofac;
|
||||
#region Greenshot GNU General Public License
|
||||
|
||||
// Greenshot - a free and open source screenshot tool
|
||||
// Copyright (C) 2007-2018 Thomas Braun, Jens Klingen, Robin Krom
|
||||
//
|
||||
// For more information see: http://getgreenshot.org/
|
||||
// The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 1 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#endregion
|
||||
|
||||
using Autofac;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.ViewModels;
|
||||
|
||||
namespace Greenshot.Addons
|
||||
|
@ -11,7 +35,10 @@ namespace Greenshot.Addons
|
|||
builder
|
||||
.RegisterType<FileConfigPartViewModel>()
|
||||
.AsSelf();
|
||||
|
||||
builder
|
||||
.RegisterType<DestinationHolder>()
|
||||
.AsSelf();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,28 +24,16 @@
|
|||
using System;
|
||||
using System.ComponentModel.Composition;
|
||||
|
||||
namespace Greenshot.Addons.Addons
|
||||
namespace Greenshot.Addons.Components
|
||||
{
|
||||
[MetadataAttribute]
|
||||
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
||||
public class DestinationAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Default constructor
|
||||
/// </summary>
|
||||
public DestinationAttribute()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Use a specific contract name for the Destination
|
||||
/// </summary>
|
||||
/// <param name="designation">string</param>
|
||||
public DestinationAttribute(string designation)
|
||||
{
|
||||
Designation = designation;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Use a specific contract name for the Destination
|
||||
/// </summary>
|
||||
|
@ -57,6 +45,20 @@ namespace Greenshot.Addons.Addons
|
|||
Priority = priority;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Use a specific contract name for the Destination
|
||||
/// </summary>
|
||||
/// <param name="designation">string</param>
|
||||
/// <param name="priority">object</param>
|
||||
public DestinationAttribute(string designation, object priority = null)
|
||||
{
|
||||
Designation = designation;
|
||||
if (priority != null)
|
||||
{
|
||||
Priority = Convert.ToInt32(priority);
|
||||
}
|
||||
}
|
||||
|
||||
public string Designation { get; set; }
|
||||
public int Priority { get; set; } = 10;
|
||||
}
|
43
src/Greenshot.Addons/Components/DestinationHolder.cs
Normal file
43
src/Greenshot.Addons/Components/DestinationHolder.cs
Normal file
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Greenshot.Addons.Extensions;
|
||||
|
||||
namespace Greenshot.Addons.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// This holds the destinations, so other components can easily retrieve them
|
||||
/// </summary>
|
||||
public class DestinationHolder
|
||||
{
|
||||
private readonly IEnumerable<Lazy<IDestination, DestinationAttribute>> _destinations;
|
||||
private readonly IEnumerable<IDestinationProvider> _destinationProviders;
|
||||
|
||||
public DestinationHolder(
|
||||
IEnumerable<Lazy<IDestination, DestinationAttribute>> destinations,
|
||||
IEnumerable<IDestinationProvider> destinationProviders
|
||||
)
|
||||
{
|
||||
_destinations = destinations;
|
||||
_destinationProviders = destinationProviders;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return an IEnumerable with sorted IDestination entries
|
||||
/// </summary>
|
||||
public IEnumerable<IDestination> SortedActiveDestinations => _destinationProviders
|
||||
.SelectMany(provider => provider.Provide())
|
||||
.Concat(_destinations)
|
||||
.Where(destination => destination.Value.IsActive)
|
||||
.OrderBy(destination => destination.Metadata.Priority)
|
||||
.ThenBy(destination => destination.Value.Description)
|
||||
.Select(d => d.Value);
|
||||
|
||||
/// <summary>
|
||||
/// Return an IEnumerable with all destinations
|
||||
/// </summary>
|
||||
public IEnumerable<Lazy<IDestination, DestinationAttribute>> AllDestinations => _destinationProviders
|
||||
.SelectMany(provider => provider.Provide())
|
||||
.Concat(_destinations);
|
||||
}
|
||||
}
|
41
src/Greenshot.Addons/Components/DestinationOrder.cs
Normal file
41
src/Greenshot.Addons/Components/DestinationOrder.cs
Normal file
|
@ -0,0 +1,41 @@
|
|||
#region Greenshot GNU General Public License
|
||||
|
||||
// Greenshot - a free and open source screenshot tool
|
||||
// Copyright (C) 2007-2018 Thomas Braun, Jens Klingen, Robin Krom
|
||||
//
|
||||
// For more information see: http://getgreenshot.org/
|
||||
// The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 1 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Greenshot.Addons.Components
|
||||
{
|
||||
public enum DestinationOrder
|
||||
{
|
||||
FileNoDialog = 0,
|
||||
FileDialog = 0,
|
||||
Picker = 1,
|
||||
Printer = 2,
|
||||
Clipboard = 2,
|
||||
Email = 3,
|
||||
Outlook = 3,
|
||||
Word = 4,
|
||||
Powerpoint = 4,
|
||||
OneNote = 4,
|
||||
Excel = 5,
|
||||
|
||||
}
|
||||
}
|
|
@ -34,7 +34,7 @@ using Greenshot.Addons.Interfaces;
|
|||
|
||||
#endregion
|
||||
|
||||
namespace Greenshot.Addons.Addons
|
||||
namespace Greenshot.Addons.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Description of IDestination.
|
36
src/Greenshot.Addons/Components/IDestinationProvider.cs
Normal file
36
src/Greenshot.Addons/Components/IDestinationProvider.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
#region Greenshot GNU General Public License
|
||||
|
||||
// Greenshot - a free and open source screenshot tool
|
||||
// Copyright (C) 2007-2018 Thomas Braun, Jens Klingen, Robin Krom
|
||||
//
|
||||
// For more information see: http://getgreenshot.org/
|
||||
// The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 1 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Greenshot.Addons.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Implement this interface to provide last-minute or dynamic IDestinations
|
||||
/// </summary>
|
||||
public interface IDestinationProvider
|
||||
{
|
||||
IEnumerable<Lazy<IDestination, DestinationAttribute>> Provide();
|
||||
}
|
||||
}
|
|
@ -37,7 +37,7 @@ using Dapplo.Windows.Common.Structs;
|
|||
using Dapplo.Windows.Dpi;
|
||||
using Dapplo.Windows.Dpi.Forms;
|
||||
using Dapplo.Windows.Extensions;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Extensions;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Gfx;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -25,7 +25,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addons.Extensions
|
||||
{
|
||||
|
|
|
@ -40,29 +40,29 @@
|
|||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CustomMarshalers" />
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Configuration, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Configuration.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Dapp, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Dapp.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Dapp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Menu, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Menu.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Menu.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Security, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Security.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Security.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.HttpExtensions, Version=0.8.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.8.35\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||
|
@ -163,7 +163,7 @@
|
|||
<Reference Include="WindowsBase" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Addons\DestinationAttribute.cs" />
|
||||
<Compile Include="Components\DestinationAttribute.cs" />
|
||||
<Compile Include="Animation\ColorAnimator.cs" />
|
||||
<Compile Include="Animation\Easing.cs" />
|
||||
<Compile Include="Animation\EasingModes.cs" />
|
||||
|
@ -173,6 +173,9 @@
|
|||
<Compile Include="Animation\PointAnimator.cs" />
|
||||
<Compile Include="Animation\RectangleAnimator.cs" />
|
||||
<Compile Include="Animation\SizeAnimator.cs" />
|
||||
<Compile Include="Components\DestinationHolder.cs" />
|
||||
<Compile Include="Components\DestinationOrder.cs" />
|
||||
<Compile Include="Components\IDestinationProvider.cs" />
|
||||
<Compile Include="Components\WindowHandle.cs" />
|
||||
<Compile Include="Controls\AnimatingForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
|
@ -377,7 +380,7 @@
|
|||
<Compile Include="Interfaces\Drawing\IDrawableContainer.cs" />
|
||||
<Compile Include="Interfaces\Forms\IImageEditor.cs" />
|
||||
<Compile Include="Interfaces\SurfaceMessageEventArgs.cs" />
|
||||
<Compile Include="Addons\IDestination.cs" />
|
||||
<Compile Include="Components\IDestination.cs" />
|
||||
<Compile Include="Interfaces\IProcessor.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ViewModels\FileConfigPartViewModel.cs" />
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
using System.Reactive.Disposables;
|
||||
using Caliburn.Micro;
|
||||
using Dapplo.CaliburnMicro.Extensions;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
|
||||
namespace Greenshot.Addons.ViewModels
|
||||
{
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Configuration" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Dapp" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Menu" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Security" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.JsonNet" version="0.8.35" targetFramework="net452" />
|
||||
<package id="Dapplo.HttpExtensions.OAuth" version="0.8.35" targetFramework="net452" />
|
||||
|
|
|
@ -36,17 +36,17 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Ini, Version=0.5.27.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Ini.0.5.27\lib\net45\Dapplo.Ini.dll</HintPath>
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net452" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net452" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net452" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net452" />
|
||||
<package id="Dapplo.InterfaceImpl" version="0.2.12" targetFramework="net452" />
|
||||
<package id="Dapplo.Language" version="0.5.27" targetFramework="net452" />
|
||||
|
|
|
@ -42,17 +42,17 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Ini, Version=0.5.27.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Ini.0.5.27\lib\net45\Dapplo.Ini.dll</HintPath>
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
<package id="Caliburn.Micro" version="3.2.0" targetFramework="net46" />
|
||||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net46" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net46" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net46" />
|
||||
<package id="Dapplo.InterfaceImpl" version="0.2.12" targetFramework="net46" />
|
||||
<package id="Dapplo.Language" version="0.5.27" targetFramework="net46" />
|
||||
|
|
|
@ -71,17 +71,17 @@
|
|||
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CommonServiceLocator.2.0.3\lib\net45\CommonServiceLocator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.9-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.1.0.11-beta\lib\net45\Dapplo.Addons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.9-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
<Reference Include="Dapplo.Addons.Bootstrapper, Version=1.0.11.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Addons.Bootstrapper.1.0.11-beta\lib\net45\Dapplo.Addons.Bootstrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.32.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.32-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
<Reference Include="Dapplo.CaliburnMicro.Translations, Version=1.0.33.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.CaliburnMicro.Translations.1.0.33-beta\lib\net45\Dapplo.CaliburnMicro.Translations.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dapplo.Ini, Version=0.5.27.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapplo.Ini.0.5.27\lib\net45\Dapplo.Ini.dll</HintPath>
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
<package id="Caliburn.Micro.Core" version="3.2.0" targetFramework="net46" />
|
||||
<package id="CommandLineParser" version="2.2.1" targetFramework="net46" />
|
||||
<package id="CommonServiceLocator" version="2.0.3" targetFramework="net46" />
|
||||
<package id="Dapplo.Addons" version="1.0.9-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.9-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.32-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.32-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.Addons" version="1.0.11-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.Addons.Bootstrapper" version="1.0.11-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.CaliburnMicro" version="1.0.33-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.CaliburnMicro.Translations" version="1.0.33-beta" targetFramework="net46" />
|
||||
<package id="Dapplo.Ini" version="0.5.27" targetFramework="net46" />
|
||||
<package id="Dapplo.InterfaceImpl" version="0.2.12" targetFramework="net46" />
|
||||
<package id="Dapplo.Language" version="0.5.27" targetFramework="net46" />
|
||||
|
|
|
@ -28,7 +28,7 @@ using System.Text;
|
|||
using CommonServiceLocator;
|
||||
using Dapplo.Log;
|
||||
using Dapplo.Windows.Kernel32;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
|
||||
namespace Greenshot.Components
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace Greenshot.Components
|
|||
/// <summary>
|
||||
/// This startup action starts Windows.Forms
|
||||
/// </summary>
|
||||
[StartupOrder((int)GreenshotStartupOrder.Forms)]
|
||||
[ServiceOrder(GreenshotStartupOrder.Forms)]
|
||||
public class FormsStartup : IStartup
|
||||
{
|
||||
private static readonly LogSource Log = new LogSource();
|
||||
|
|
|
@ -35,7 +35,7 @@ using System.Windows.Forms;
|
|||
using Dapplo.Addons;
|
||||
using Dapplo.Ini;
|
||||
using Dapplo.Log;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
@ -51,14 +51,14 @@ namespace Greenshot.Components
|
|||
/// This startup action starts the Greenshot "server", which allows to open files etc.
|
||||
/// </summary>
|
||||
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
|
||||
[StartupOrder((int)GreenshotStartupOrder.Server)]
|
||||
[ServiceOrder(GreenshotStartupOrder.Server)]
|
||||
public class GreenshotServerAction : IGreenshotContract, IStartupAsync, IShutdownAsync
|
||||
{
|
||||
private static readonly LogSource Log = new LogSource();
|
||||
private readonly ICoreConfiguration _coreConfiguration;
|
||||
private readonly MainForm _mainForm;
|
||||
private readonly HotkeyHandler _hotkeyHandler;
|
||||
private readonly IEnumerable<IDestination> _destinations;
|
||||
private readonly DestinationHolder _destinationHolder;
|
||||
private ServiceHost _host;
|
||||
|
||||
public static string Identity
|
||||
|
@ -71,12 +71,16 @@ namespace Greenshot.Components
|
|||
}
|
||||
public static string EndPoint => $"net.pipe://localhost/Greenshot/Greenshot_{Identity}";
|
||||
|
||||
public GreenshotServerAction(ICoreConfiguration coreConfiguration, MainForm mainForm, HotkeyHandler hotkeyHandler, IEnumerable<IDestination> destinations)
|
||||
public GreenshotServerAction(
|
||||
ICoreConfiguration coreConfiguration,
|
||||
MainForm mainForm,
|
||||
HotkeyHandler hotkeyHandler,
|
||||
DestinationHolder destinationHolder)
|
||||
{
|
||||
_coreConfiguration = coreConfiguration;
|
||||
_mainForm = mainForm;
|
||||
_hotkeyHandler = hotkeyHandler;
|
||||
_destinations = destinations;
|
||||
_destinationHolder = destinationHolder;
|
||||
}
|
||||
|
||||
public async Task StartAsync(CancellationToken cancellationToken = default)
|
||||
|
@ -160,7 +164,7 @@ namespace Greenshot.Components
|
|||
// Fallback-Destination
|
||||
|
||||
var designation = _coreConfiguration.OutputDestinations.FirstOrDefault();
|
||||
var destination = _destinations.FirstOrDefault(d => d.Designation == designation && d.IsActive);
|
||||
var destination = _destinationHolder.SortedActiveDestinations.FirstOrDefault(d => d.Designation == designation);
|
||||
|
||||
switch (captureMode.ToLower())
|
||||
{
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace Greenshot.Components
|
|||
/// <summary>
|
||||
/// This startup action registers the hotkeys
|
||||
/// </summary>
|
||||
[StartupOrder((int)GreenshotUiStartupOrder.Hotkeys), ShutdownOrder(int.MinValue)]
|
||||
[ServiceOrder(GreenshotUiStartupOrder.Hotkeys, int.MinValue)]
|
||||
public class HotkeyHandler : IUiStartup, IUiShutdown
|
||||
{
|
||||
private static readonly LogSource Log = new LogSource();
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace Greenshot.Components
|
|||
/// <summary>
|
||||
/// This startup action starts the MainForm
|
||||
/// </summary>
|
||||
[StartupOrder((int)GreenshotUiStartupOrder.TrayIcon)]
|
||||
[ServiceOrder(GreenshotUiStartupOrder.TrayIcon)]
|
||||
public class MainFormStartup : IUiStartup, IUiShutdown
|
||||
{
|
||||
private static readonly LogSource Log = new LogSource();
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace Greenshot.Components
|
|||
/// Create to fix the sometimes wrongly played sample, especially after first start from IDE
|
||||
/// See: http://www.codeproject.com/KB/audio-video/soundplayerbug.aspx?msg=2487569
|
||||
/// </summary>
|
||||
[StartupOrder((int)GreenshotStartupOrder.Sound)]
|
||||
[ServiceOrder(GreenshotStartupOrder.Sound)]
|
||||
public class SoundHelper : IStartup, IShutdown
|
||||
{
|
||||
private readonly ICoreConfiguration _coreConfiguration;
|
||||
|
|
|
@ -27,7 +27,7 @@ using System;
|
|||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Configuration;
|
||||
|
@ -39,7 +39,7 @@ namespace Greenshot.Destinations
|
|||
/// <summary>
|
||||
/// Description of ClipboardDestination.
|
||||
/// </summary>
|
||||
[Destination("Clipboard",2)]
|
||||
[Destination("Clipboard", DestinationOrder.Clipboard)]
|
||||
public class ClipboardDestination : AbstractDestination
|
||||
{
|
||||
public ClipboardDestination(
|
||||
|
|
|
@ -27,7 +27,7 @@ using System;
|
|||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Helpers;
|
||||
|
@ -39,7 +39,7 @@ namespace Greenshot.Destinations
|
|||
/// <summary>
|
||||
/// Description of EmailDestination.
|
||||
/// </summary>
|
||||
[Destination("EMail", 3)]
|
||||
[Destination("EMail", DestinationOrder.Email)]
|
||||
public class EmailDestination : AbstractDestination
|
||||
{
|
||||
private static readonly Bitmap MailIcon = GreenshotResources.GetBitmap("Email.Image");
|
||||
|
|
|
@ -29,7 +29,7 @@ using System.IO;
|
|||
using System.Windows.Forms;
|
||||
using Dapplo.Log;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Controls;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
@ -42,7 +42,7 @@ namespace Greenshot.Destinations
|
|||
/// <summary>
|
||||
/// Description of FileSaveAsDestination.
|
||||
/// </summary>
|
||||
[Destination("FileNoDialog", 0)]
|
||||
[Destination("FileNoDialog", DestinationOrder.FileNoDialog)]
|
||||
public class FileDestination : AbstractDestination
|
||||
{
|
||||
private static readonly LogSource Log = new LogSource();
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
using Greenshot.Configuration;
|
||||
|
@ -38,7 +38,7 @@ namespace Greenshot.Destinations
|
|||
/// <summary>
|
||||
/// Description of FileWithDialog.
|
||||
/// </summary>
|
||||
[Destination("FileDialog", 0)]
|
||||
[Destination("FileDialog", DestinationOrder.FileDialog)]
|
||||
|
||||
public class FileWithDialogDestination : AbstractDestination
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Greenshot.Addons;
|
||||
using Greenshot.Addons.Addons;
|
||||
using Greenshot.Addons.Components;
|
||||
using Greenshot.Addons.Core;
|
||||
using Greenshot.Addons.Interfaces;
|
||||
|
||||
|
@ -38,21 +38,21 @@ namespace Greenshot.Destinations
|
|||
/// <summary>
|
||||
/// The PickerDestination shows a context menu with all possible destinations, so the user can "pick" one
|
||||
/// </summary>
|
||||
[Destination("Picker", 1)]
|
||||
[Destination("Picker", DestinationOrder.Picker)]
|
||||
public class PickerDestination : AbstractDestination
|
||||
{
|
||||
private readonly IEnumerable<Lazy<IDestination, DestinationAttribute>> _destinations;
|
||||
private readonly DestinationHolder _destinationHolder;
|
||||
|
||||
public override string Description => GreenshotLanguage.SettingsDestinationPicker;
|
||||
|
||||
public PickerDestination(
|
||||
IEnumerable<Lazy<IDestination, DestinationAttribute>> destinations,
|
||||
DestinationHolder destinationHolder,
|
||||
ICoreConfiguration coreConfiguration,
|
||||
IGreenshotLanguage greenshotLanguage
|
||||
) : base(coreConfiguration, greenshotLanguage)
|
||||
{
|
||||
_destinations = destinations;
|
||||
}
|
||||
{
|
||||
_destinationHolder = destinationHolder;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Export the capture with the destination picker
|
||||
|
@ -69,11 +69,8 @@ namespace Greenshot.Destinations
|
|||
{
|
||||
foreach (var outputDestination in CoreConfiguration.PickerDestinations)
|
||||
{
|
||||
var pickerDestination = _destinations
|
||||
.Where(destination => !"Picker".Equals(destination.Metadata.Designation))
|
||||
.Where(destination => destination.Value.IsActive)
|
||||
.Where(destination => outputDestination == destination.Value.Designation)
|
||||
.Select(d => d.Value).FirstOrDefault();
|
||||
var pickerDestination = _destinationHolder.SortedActiveDestinations
|
||||
.FirstOrDefault(destination => outputDestination == destination.Designation);
|
||||
|
||||
if (pickerDestination != null)
|
||||
{
|
||||
|
@ -83,12 +80,8 @@ namespace Greenshot.Destinations
|
|||
}
|
||||
else
|
||||
{
|
||||
foreach (var pickerDestination in _destinations
|
||||
.Where(destination => !"Picker".Equals(destination.Metadata.Designation))
|
||||
.Where(destination => destination.Value.IsActive)
|
||||
.OrderBy(destination => destination.Metadata.Priority)
|
||||
.ThenBy(destination => destination.Value.Description)
|
||||
.Select(d => d.Value))
|
||||
foreach (var pickerDestination in _destinationHolder.SortedActiveDestinations
|
||||
.Where(destination => !"Picker".Equals(destination.Designation)))
|
||||
{
|
||||
pickerDestinations.Add(pickerDestination);
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue