From 381a8b9f74c2315ace5ae6d1e23ac023c75907e9 Mon Sep 17 00:00:00 2001 From: Mathew Sachin Date: Wed, 27 Feb 2019 22:27:47 +0530 Subject: [PATCH] Remove unnecessary proj dependencies --- src/Captura.Base/Services/ServiceProvider.cs | 2 +- src/Captura.MouseKeyHook/Captura.MouseKeyHook.csproj | 1 - src/Captura.Windows/Imaging/DrawingFrameBase.cs | 1 - src/Captura.YouTube/Captura.YouTube.csproj | 1 - src/Captura.YouTube/YouTubeUploaderViewModel.cs | 6 +++--- src/DesktopDuplication/DesktopDuplication.csproj | 1 - 6 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Captura.Base/Services/ServiceProvider.cs b/src/Captura.Base/Services/ServiceProvider.cs index eb112e25b..b7f75530e 100644 --- a/src/Captura.Base/Services/ServiceProvider.cs +++ b/src/Captura.Base/Services/ServiceProvider.cs @@ -123,7 +123,7 @@ public static void BindAsInterfaceAndClass(this IBinder Bind Binder.BindSingleton(); // ReSharper disable once ConvertClosureToMethodGroup - Binder.Bind(() => ServiceProvider.Get()); + Binder.Bind(() => Get()); } } } diff --git a/src/Captura.MouseKeyHook/Captura.MouseKeyHook.csproj b/src/Captura.MouseKeyHook/Captura.MouseKeyHook.csproj index 711b16dfb..3cabceba9 100644 --- a/src/Captura.MouseKeyHook/Captura.MouseKeyHook.csproj +++ b/src/Captura.MouseKeyHook/Captura.MouseKeyHook.csproj @@ -7,7 +7,6 @@ - diff --git a/src/Captura.Windows/Imaging/DrawingFrameBase.cs b/src/Captura.Windows/Imaging/DrawingFrameBase.cs index bc01fe777..72e7ff5c1 100644 --- a/src/Captura.Windows/Imaging/DrawingFrameBase.cs +++ b/src/Captura.Windows/Imaging/DrawingFrameBase.cs @@ -1,6 +1,5 @@ using System.Drawing; using System.Drawing.Imaging; -using System.IO; using System.Runtime.InteropServices; using Captura; diff --git a/src/Captura.YouTube/Captura.YouTube.csproj b/src/Captura.YouTube/Captura.YouTube.csproj index 9a4d14f33..891072c98 100644 --- a/src/Captura.YouTube/Captura.YouTube.csproj +++ b/src/Captura.YouTube/Captura.YouTube.csproj @@ -9,6 +9,5 @@ - diff --git a/src/Captura.YouTube/YouTubeUploaderViewModel.cs b/src/Captura.YouTube/YouTubeUploaderViewModel.cs index 15abdd053..813e9ccb2 100644 --- a/src/Captura.YouTube/YouTubeUploaderViewModel.cs +++ b/src/Captura.YouTube/YouTubeUploaderViewModel.cs @@ -5,7 +5,6 @@ using System.Threading.Tasks; using Captura.Models; using Google.Apis.Upload; -using Screna; namespace Captura.ViewModels { @@ -24,7 +23,8 @@ public class YouTubeUploaderViewModel : NotifyPropertyChanged YouTubeUploadRequest _uploadRequest; public YouTubeUploaderViewModel(YouTubeUploader Uploader, - IMessageProvider MessageProvider) + IMessageProvider MessageProvider, + IClipboardService ClipboardService) { _uploader = Uploader; _messageProvider = MessageProvider; @@ -34,7 +34,7 @@ public YouTubeUploaderViewModel(YouTubeUploader Uploader, OpenVideoCommand = new DelegateCommand(() => Process.Start(Link), false); - CopyLinkCommand = new DelegateCommand(() => Link.WriteToClipboard(), false); + CopyLinkCommand = new DelegateCommand(() => ClipboardService.SetText(Link), false); } public string FileName diff --git a/src/DesktopDuplication/DesktopDuplication.csproj b/src/DesktopDuplication/DesktopDuplication.csproj index 24bd4a967..2d6c1dfcf 100644 --- a/src/DesktopDuplication/DesktopDuplication.csproj +++ b/src/DesktopDuplication/DesktopDuplication.csproj @@ -5,7 +5,6 @@ -