1
0
mirror of https://github.com/chylex/Code-Statistics.git synced 2025-03-14 15:15:44 +01: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">
<DependentUpon>AboutForm.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Utils\FormExtensions.cs" />
<Compile Include="Forms\Input\GitHubForm.cs">
<SubType>Form</SubType>
</Compile>

View File

@ -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;

View File

@ -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{

View File

@ -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();

View File

@ -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" />