From c11f36dfef7dedaa13c2aa9872505985ddf7399b Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Fri, 28 Apr 2017 13:51:06 +0200 Subject: [PATCH] Remove and sort usings in the whole project --- Core/FormBrowser.cs | 30 +++++++++---------- Core/Handling/ContextMenuBrowser.cs | 4 +-- Core/Notification/FormNotificationBase.cs | 6 ++-- Core/Notification/FormNotificationMain.cs | 4 +-- .../FormNotificationTweet.Designer.cs | 6 ---- .../FormNotificationScreenshotable.cs | 6 ++-- Core/Other/FormAbout.Designer.cs | 2 -- Core/Utils/BrowserUtils.cs | 8 ++--- Plugins/PluginManager.cs | 4 +-- Program.cs | 18 +++++------ Properties/AssemblyInfo.cs | 2 +- Properties/Resources.Designer.cs | 5 ++-- Resources/ScriptLoader.cs | 6 ++-- Updates/UpdateHandler.cs | 4 +-- 14 files changed, 48 insertions(+), 57 deletions(-) diff --git a/Core/FormBrowser.cs b/Core/FormBrowser.cs index 7e1e0954..719cead8 100644 --- a/Core/FormBrowser.cs +++ b/Core/FormBrowser.cs @@ -1,25 +1,25 @@ -using System; -using System.Windows.Forms; -using CefSharp; +using CefSharp; using CefSharp.WinForms; -using TweetDck.Configuration; -using TweetDck.Core.Handling; -using TweetDck.Core.Other; -using TweetDck.Resources; -using TweetDck.Core.Controls; +using System; +using System.Diagnostics; using System.Drawing; +using System.Linq; +using System.Windows.Forms; +using TweetDck.Configuration; +using TweetDck.Core.Bridge; +using TweetDck.Core.Controls; +using TweetDck.Core.Handling; +using TweetDck.Core.Notification; +using TweetDck.Core.Notification.Screenshot; +using TweetDck.Core.Notification.Sound; +using TweetDck.Core.Other; using TweetDck.Core.Utils; -using TweetDck.Updates; using TweetDck.Plugins; using TweetDck.Plugins.Enums; using TweetDck.Plugins.Events; -using TweetDck.Core.Bridge; -using TweetDck.Core.Notification; -using TweetDck.Core.Notification.Screenshot; +using TweetDck.Resources; +using TweetDck.Updates; using TweetDck.Updates.Events; -using System.Diagnostics; -using System.Linq; -using TweetDck.Core.Notification.Sound; namespace TweetDck.Core{ sealed partial class FormBrowser : Form{ diff --git a/Core/Handling/ContextMenuBrowser.cs b/Core/Handling/ContextMenuBrowser.cs index ca44b52b..f79eb6df 100644 --- a/Core/Handling/ContextMenuBrowser.cs +++ b/Core/Handling/ContextMenuBrowser.cs @@ -1,5 +1,5 @@ -using System.Windows.Forms; -using CefSharp; +using CefSharp; +using System.Windows.Forms; using TweetDck.Core.Bridge; using TweetDck.Core.Controls; using TweetDck.Core.Utils; diff --git a/Core/Notification/FormNotificationBase.cs b/Core/Notification/FormNotificationBase.cs index 68921a81..d610e384 100644 --- a/Core/Notification/FormNotificationBase.cs +++ b/Core/Notification/FormNotificationBase.cs @@ -1,8 +1,8 @@ -using System; +using CefSharp; +using CefSharp.WinForms; +using System; using System.Drawing; using System.Windows.Forms; -using CefSharp; -using CefSharp.WinForms; using TweetDck.Configuration; using TweetDck.Core.Controls; using TweetDck.Core.Handling; diff --git a/Core/Notification/FormNotificationMain.cs b/Core/Notification/FormNotificationMain.cs index 7783b889..07853edc 100644 --- a/Core/Notification/FormNotificationMain.cs +++ b/Core/Notification/FormNotificationMain.cs @@ -1,7 +1,7 @@ -using System; +using CefSharp; +using System; using System.Drawing; using System.Windows.Forms; -using CefSharp; using TweetDck.Core.Bridge; using TweetDck.Core.Controls; using TweetDck.Core.Utils; diff --git a/Core/Notification/FormNotificationTweet.Designer.cs b/Core/Notification/FormNotificationTweet.Designer.cs index 43cca641..435bee3f 100644 --- a/Core/Notification/FormNotificationTweet.Designer.cs +++ b/Core/Notification/FormNotificationTweet.Designer.cs @@ -1,9 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace TweetDck.Core.Notification { partial class FormNotificationTweet { /// <summary> diff --git a/Core/Notification/Screenshot/FormNotificationScreenshotable.cs b/Core/Notification/Screenshot/FormNotificationScreenshotable.cs index 87e4e404..9a5ca10d 100644 --- a/Core/Notification/Screenshot/FormNotificationScreenshotable.cs +++ b/Core/Notification/Screenshot/FormNotificationScreenshotable.cs @@ -1,10 +1,10 @@ using System; -using System.Windows.Forms; -using TweetDck.Core.Bridge; -using TweetDck.Resources; using System.Drawing; using System.Drawing.Imaging; +using System.Windows.Forms; +using TweetDck.Core.Bridge; using TweetDck.Core.Utils; +using TweetDck.Resources; namespace TweetDck.Core.Notification.Screenshot{ sealed class FormNotificationScreenshotable : FormNotificationBase{ diff --git a/Core/Other/FormAbout.Designer.cs b/Core/Other/FormAbout.Designer.cs index 10f95bd3..eeeb2db8 100644 --- a/Core/Other/FormAbout.Designer.cs +++ b/Core/Other/FormAbout.Designer.cs @@ -1,5 +1,3 @@ -using TweetDck.Core.Controls; - namespace TweetDck.Core.Other { sealed partial class FormAbout { /// <summary> diff --git a/Core/Utils/BrowserUtils.cs b/Core/Utils/BrowserUtils.cs index 545449b5..3ff6f192 100644 --- a/Core/Utils/BrowserUtils.cs +++ b/Core/Utils/BrowserUtils.cs @@ -1,12 +1,12 @@ -using System; +using CefSharp; +using System; using System.Diagnostics; +using System.Drawing; using System.Globalization; using System.IO; using System.Net; -using System.Windows.Forms; -using CefSharp; using System.Text.RegularExpressions; -using System.Drawing; +using System.Windows.Forms; namespace TweetDck.Core.Utils{ static class BrowserUtils{ diff --git a/Plugins/PluginManager.cs b/Plugins/PluginManager.cs index f3d46bc8..be4d6e55 100644 --- a/Plugins/PluginManager.cs +++ b/Plugins/PluginManager.cs @@ -1,8 +1,8 @@ -using System; +using CefSharp; +using System; using System.Collections.Generic; using System.IO; using System.Linq; -using CefSharp; using TweetDck.Plugins.Enums; using TweetDck.Plugins.Events; using TweetDck.Resources; diff --git a/Program.cs b/Program.cs index 85f8fc4a..9a8ddba7 100644 --- a/Program.cs +++ b/Program.cs @@ -1,18 +1,18 @@ -using System; +using CefSharp; +using System; using System.Diagnostics; using System.IO; -using System.Windows.Forms; -using CefSharp; -using TweetDck.Configuration; -using TweetDck.Core; -using TweetDck.Core.Utils; using System.Linq; using System.Threading; -using TweetDck.Plugins; -using TweetDck.Plugins.Events; -using TweetDck.Core.Other.Settings.Export; +using System.Windows.Forms; +using TweetDck.Configuration; +using TweetDck.Core; using TweetDck.Core.Handling; using TweetDck.Core.Other; +using TweetDck.Core.Other.Settings.Export; +using TweetDck.Core.Utils; +using TweetDck.Plugins; +using TweetDck.Plugins.Events; using TweetDck.Updates; namespace TweetDck{ diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index bf2472d2..e385f957 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -1,7 +1,7 @@ using System; using System.Reflection; -using System.Runtime.InteropServices; using System.Resources; +using System.Runtime.InteropServices; using TweetDck; // General Information about an assembly is controlled through the following diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index 9e9b61ab..d44d25a6 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -9,9 +9,8 @@ //------------------------------------------------------------------------------ namespace TweetDck.Properties { - using System; - - + + /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> diff --git a/Resources/ScriptLoader.cs b/Resources/ScriptLoader.cs index 6718460f..919e2d66 100644 --- a/Resources/ScriptLoader.cs +++ b/Resources/ScriptLoader.cs @@ -1,9 +1,9 @@ -using System; +using CefSharp; +using CefSharp.WinForms; +using System; using System.IO; using System.Text; using System.Windows.Forms; -using CefSharp; -using CefSharp.WinForms; namespace TweetDck.Resources{ static class ScriptLoader{ diff --git a/Updates/UpdateHandler.cs b/Updates/UpdateHandler.cs index 29a3c276..f45d363f 100644 --- a/Updates/UpdateHandler.cs +++ b/Updates/UpdateHandler.cs @@ -1,6 +1,6 @@ -using System; -using CefSharp; +using CefSharp; using CefSharp.WinForms; +using System; using TweetDck.Core; using TweetDck.Core.Controls; using TweetDck.Core.Utils;