diff --git a/CodeStatistics/CodeStatistics.csproj b/CodeStatistics/CodeStatistics.csproj index 6993fd3..532e59a 100644 --- a/CodeStatistics/CodeStatistics.csproj +++ b/CodeStatistics/CodeStatistics.csproj @@ -73,6 +73,7 @@ <Compile Include="Forms\AboutForm.Designer.cs"> <DependentUpon>AboutForm.cs</DependentUpon> </Compile> + <Compile Include="Forms\Utils\FormExtensions.cs" /> <Compile Include="Forms\Input\GitHubForm.cs"> <SubType>Form</SubType> </Compile> diff --git a/CodeStatistics/Forms/Input/GitHubForm.cs b/CodeStatistics/Forms/Input/GitHubForm.cs index 4329560..e7dfd88 100644 --- a/CodeStatistics/Forms/Input/GitHubForm.cs +++ b/CodeStatistics/Forms/Input/GitHubForm.cs @@ -1,8 +1,8 @@ using System; using System.Windows.Forms; using CodeStatistics.Data; +using CodeStatistics.Forms.Utils; using CodeStatistics.Input.Methods; -using CodeStatisticsCore.Forms; #if MONO using System.Diagnostics; diff --git a/CodeStatistics/Forms/Project/ProjectLoadForm.cs b/CodeStatistics/Forms/Project/ProjectLoadForm.cs index b587495..942ccaf 100644 --- a/CodeStatistics/Forms/Project/ProjectLoadForm.cs +++ b/CodeStatistics/Forms/Project/ProjectLoadForm.cs @@ -5,9 +5,9 @@ using System.Globalization; using System.IO; using System.Windows.Forms; using CodeStatistics.Data; +using CodeStatistics.Forms.Utils; using CodeStatistics.Input; using CodeStatistics.Output; -using CodeStatisticsCore.Forms; using CodeStatisticsCore.Handling; namespace CodeStatistics.Forms.Project{ diff --git a/CodeStatisticsCore/Forms/FormUtils.cs b/CodeStatistics/Forms/Utils/FormExtensions.cs similarity index 75% rename from CodeStatisticsCore/Forms/FormUtils.cs rename to CodeStatistics/Forms/Utils/FormExtensions.cs index 3ad49cc..fde8785 100644 --- a/CodeStatisticsCore/Forms/FormUtils.cs +++ b/CodeStatistics/Forms/Utils/FormExtensions.cs @@ -1,8 +1,8 @@ using System; using System.Windows.Forms; -namespace CodeStatisticsCore.Forms{ - public static class FormUtils{ +namespace CodeStatistics.Forms.Utils{ + static class FormExtensions{ public static void InvokeOnUIThread(this Form form, Action func){ if (form.InvokeRequired)form.Invoke(func); else func(); diff --git a/CodeStatisticsCore/CodeStatisticsCore.csproj b/CodeStatisticsCore/CodeStatisticsCore.csproj index 1a3276f..0a27916 100644 --- a/CodeStatisticsCore/CodeStatisticsCore.csproj +++ b/CodeStatisticsCore/CodeStatisticsCore.csproj @@ -34,7 +34,6 @@ <ItemGroup> <Reference Include="System" /> <Reference Include="System.Core" /> - <Reference Include="System.Windows.Forms" /> </ItemGroup> <ItemGroup> <Compile Include="Collections\AnonymousDictionary.cs" /> @@ -43,7 +42,6 @@ <Compile Include="Collections\CounterDictionary.cs" /> <Compile Include="Collections\EnumDictionary.cs" /> <Compile Include="Collections\TopElementList.cs" /> - <Compile Include="Forms\FormUtils.cs" /> <Compile Include="Handling\Files\AbstractFileHandler.cs" /> <Compile Include="Handling\Files\AbstractLanguageFileHandler.cs" /> <Compile Include="Handling\IFileHandler.cs" />