1
0
mirror of https://github.com/chylex/Code-Statistics.git synced 2025-06-06 00:34:04 +02:00

Move FormUtils from Core to the main project

This commit is contained in:
chylex 2016-10-05 21:34:02 +02:00
parent 768d0da2df
commit 85168862ca
5 changed files with 5 additions and 6 deletions

View File

@ -73,6 +73,7 @@
<Compile Include="Forms\AboutForm.Designer.cs"> <Compile Include="Forms\AboutForm.Designer.cs">
<DependentUpon>AboutForm.cs</DependentUpon> <DependentUpon>AboutForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Forms\Utils\FormExtensions.cs" />
<Compile Include="Forms\Input\GitHubForm.cs"> <Compile Include="Forms\Input\GitHubForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>

View File

@ -1,8 +1,8 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using CodeStatistics.Data; using CodeStatistics.Data;
using CodeStatistics.Forms.Utils;
using CodeStatistics.Input.Methods; using CodeStatistics.Input.Methods;
using CodeStatisticsCore.Forms;
#if MONO #if MONO
using System.Diagnostics; using System.Diagnostics;

View File

@ -5,9 +5,9 @@ using System.Globalization;
using System.IO; using System.IO;
using System.Windows.Forms; using System.Windows.Forms;
using CodeStatistics.Data; using CodeStatistics.Data;
using CodeStatistics.Forms.Utils;
using CodeStatistics.Input; using CodeStatistics.Input;
using CodeStatistics.Output; using CodeStatistics.Output;
using CodeStatisticsCore.Forms;
using CodeStatisticsCore.Handling; using CodeStatisticsCore.Handling;
namespace CodeStatistics.Forms.Project{ namespace CodeStatistics.Forms.Project{

View File

@ -1,8 +1,8 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
namespace CodeStatisticsCore.Forms{ namespace CodeStatistics.Forms.Utils{
public static class FormUtils{ static class FormExtensions{
public static void InvokeOnUIThread(this Form form, Action func){ public static void InvokeOnUIThread(this Form form, Action func){
if (form.InvokeRequired)form.Invoke(func); if (form.InvokeRequired)form.Invoke(func);
else func(); else func();

View File

@ -34,7 +34,6 @@
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Windows.Forms" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Collections\AnonymousDictionary.cs" /> <Compile Include="Collections\AnonymousDictionary.cs" />
@ -43,7 +42,6 @@
<Compile Include="Collections\CounterDictionary.cs" /> <Compile Include="Collections\CounterDictionary.cs" />
<Compile Include="Collections\EnumDictionary.cs" /> <Compile Include="Collections\EnumDictionary.cs" />
<Compile Include="Collections\TopElementList.cs" /> <Compile Include="Collections\TopElementList.cs" />
<Compile Include="Forms\FormUtils.cs" />
<Compile Include="Handling\Files\AbstractFileHandler.cs" /> <Compile Include="Handling\Files\AbstractFileHandler.cs" />
<Compile Include="Handling\Files\AbstractLanguageFileHandler.cs" /> <Compile Include="Handling\Files\AbstractLanguageFileHandler.cs" />
<Compile Include="Handling\IFileHandler.cs" /> <Compile Include="Handling\IFileHandler.cs" />