From bc1767fb84d9b9dea1de0dd75e8f28d40ca6560b Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Fri, 11 Aug 2017 23:50:16 +0200 Subject: [PATCH] Change namespace of BrowserProcesses, MemoryUsageTracker, VideoPlayer --- Core/FormBrowser.cs | 2 +- Core/Notification/FormNotificationBase.cs | 1 + Core/{Utils => Other/Management}/BrowserProcesses.cs | 3 ++- Core/{Utils => Other/Management}/MemoryUsageTracker.cs | 2 +- Core/Other/{Media => Management}/VideoPlayer.cs | 4 ++-- TweetDuck.csproj | 6 +++--- 6 files changed, 10 insertions(+), 8 deletions(-) rename Core/{Utils => Other/Management}/BrowserProcesses.cs (91%) rename Core/{Utils => Other/Management}/MemoryUsageTracker.cs (98%) rename Core/Other/{Media => Management}/VideoPlayer.cs (97%) diff --git a/Core/FormBrowser.cs b/Core/FormBrowser.cs index e52a7b2d..084a6859 100644 --- a/Core/FormBrowser.cs +++ b/Core/FormBrowser.cs @@ -12,7 +12,7 @@ using TweetDuck.Core.Notification; using TweetDuck.Core.Notification.Screenshot; using TweetDuck.Core.Other; -using TweetDuck.Core.Other.Media; +using TweetDuck.Core.Other.Management; using TweetDuck.Core.Other.Settings; using TweetDuck.Core.Utils; using TweetDuck.Plugins; diff --git a/Core/Notification/FormNotificationBase.cs b/Core/Notification/FormNotificationBase.cs index 54fb98c2..3bbd29a4 100644 --- a/Core/Notification/FormNotificationBase.cs +++ b/Core/Notification/FormNotificationBase.cs @@ -7,6 +7,7 @@ using TweetDuck.Core.Controls; using TweetDuck.Core.Handling; using TweetDuck.Core.Handling.General; +using TweetDuck.Core.Other.Management; using TweetDuck.Core.Utils; namespace TweetDuck.Core.Notification{ diff --git a/Core/Utils/BrowserProcesses.cs b/Core/Other/Management/BrowserProcesses.cs similarity index 91% rename from Core/Utils/BrowserProcesses.cs rename to Core/Other/Management/BrowserProcesses.cs index 61816e76..51cbe85e 100644 --- a/Core/Utils/BrowserProcesses.cs +++ b/Core/Other/Management/BrowserProcesses.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; using System.Diagnostics; using CefSharp; +using TweetDuck.Core.Utils; -namespace TweetDuck.Core.Utils{ +namespace TweetDuck.Core.Other.Management{ static class BrowserProcesses{ private static readonly Dictionary<int, int> PIDs = new Dictionary<int, int>(); diff --git a/Core/Utils/MemoryUsageTracker.cs b/Core/Other/Management/MemoryUsageTracker.cs similarity index 98% rename from Core/Utils/MemoryUsageTracker.cs rename to Core/Other/Management/MemoryUsageTracker.cs index d31ab7a3..bc47227e 100644 --- a/Core/Utils/MemoryUsageTracker.cs +++ b/Core/Other/Management/MemoryUsageTracker.cs @@ -5,7 +5,7 @@ using CefSharp; using Timer = System.Timers.Timer; -namespace TweetDuck.Core.Utils{ +namespace TweetDuck.Core.Other.Management{ sealed class MemoryUsageTracker : IDisposable{ private const int IntervalMemoryCheck = 60000*30; // 30 minutes private const int IntervalCleanupAttempt = 60000*5; // 5 minutes diff --git a/Core/Other/Media/VideoPlayer.cs b/Core/Other/Management/VideoPlayer.cs similarity index 97% rename from Core/Other/Media/VideoPlayer.cs rename to Core/Other/Management/VideoPlayer.cs index 959d7ea9..1800dcb2 100644 --- a/Core/Other/Media/VideoPlayer.cs +++ b/Core/Other/Management/VideoPlayer.cs @@ -4,8 +4,8 @@ using System.Windows.Forms; using TweetDuck.Core.Utils; -namespace TweetDuck.Core.Other.Media{ - class VideoPlayer{ +namespace TweetDuck.Core.Other.Management{ + sealed class VideoPlayer{ private readonly string PlayerExe = Path.Combine(Program.ProgramPath, "TweetDuck.Video.exe"); public bool Running{ diff --git a/TweetDuck.csproj b/TweetDuck.csproj index 06abcad5..4269be0d 100644 --- a/TweetDuck.csproj +++ b/TweetDuck.csproj @@ -142,7 +142,7 @@ <Compile Include="Core\Other\FormPlugins.Designer.cs"> <DependentUpon>FormPlugins.cs</DependentUpon> </Compile> - <Compile Include="Core\Other\Media\VideoPlayer.cs" /> + <Compile Include="Core\Other\Management\VideoPlayer.cs" /> <Compile Include="Core\Other\Settings\Dialogs\DialogSettingsCSS.cs"> <SubType>Form</SubType> </Compile> @@ -167,7 +167,7 @@ <Compile Include="Core\Other\Settings\Dialogs\DialogSettingsRestart.Designer.cs"> <DependentUpon>DialogSettingsRestart.cs</DependentUpon> </Compile> - <Compile Include="Core\Utils\BrowserProcesses.cs" /> + <Compile Include="Core\Other\Management\BrowserProcesses.cs" /> <Compile Include="Core\Utils\StringUtils.cs" /> <Compile Include="Core\Utils\TwitterUtils.cs" /> <Compile Include="Data\CombinedFileStream.cs" /> @@ -212,7 +212,7 @@ <Compile Include="Data\Serialization\SingleTypeConverter.cs" /> <Compile Include="Data\TwoKeyDictionary.cs" /> <Compile Include="Data\WindowState.cs" /> - <Compile Include="Core\Utils\MemoryUsageTracker.cs" /> + <Compile Include="Core\Other\Management\MemoryUsageTracker.cs" /> <Compile Include="Core\Utils\WindowsUtils.cs" /> <Compile Include="Core\Bridge\TweetDeckBridge.cs" /> <Compile Include="Core\Other\FormSettings.cs">