Skip to content

Commit

Permalink
Optimized project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
berrnd committed Oct 17, 2022
1 parent dc131bd commit 17adc12
Show file tree
Hide file tree
Showing 24 changed files with 53 additions and 48 deletions.
4 changes: 2 additions & 2 deletions ActionItem.cs → Data/ActionItem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.ComponentModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Traything
namespace Traything.Data
{
public class ActionItem
{
Expand Down
4 changes: 2 additions & 2 deletions Settings.cs → Data/Settings.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Xml.Serialization;

namespace Traything
namespace Traything.Data
{
public class Settings
{
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
using System;
using System.IO;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using Traything.UI;

namespace Traything
{
Expand Down
43 changes: 21 additions & 22 deletions Traything.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,63 +77,63 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ActionItem.cs" />
<Compile Include="FrmAbout.cs">
<Compile Include="Data\ActionItem.cs" />
<Compile Include="UI\FrmAbout.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmAbout.Designer.cs">
<Compile Include="UI\FrmAbout.Designer.cs">
<DependentUpon>FrmAbout.cs</DependentUpon>
</Compile>
<Compile Include="FrmEditActionItem.cs">
<Compile Include="UI\FrmEditActionItem.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmEditActionItem.Designer.cs">
<Compile Include="UI\FrmEditActionItem.Designer.cs">
<DependentUpon>FrmEditActionItem.cs</DependentUpon>
</Compile>
<Compile Include="FrmMain.cs">
<Compile Include="UI\FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<Compile Include="UI\FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="BaseTrayForm.cs">
<Compile Include="UI\BaseTrayForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="BaseTrayForm.Designer.cs">
<Compile Include="UI\BaseTrayForm.Designer.cs">
<DependentUpon>BaseTrayForm.cs</DependentUpon>
</Compile>
<Compile Include="FrmVlcPlayer.cs">
<Compile Include="UI\FrmVlcPlayer.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmVlcPlayer.Designer.cs">
<Compile Include="UI\FrmVlcPlayer.Designer.cs">
<DependentUpon>FrmVlcPlayer.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Settings.cs" />
<Compile Include="TaskbarHelper.cs" />
<Compile Include="FrmBrowser.cs">
<Compile Include="Data\Settings.cs" />
<Compile Include="Extensions\TaskbarHelper.cs" />
<Compile Include="UI\FrmBrowser.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmBrowser.Designer.cs">
<Compile Include="UI\FrmBrowser.Designer.cs">
<DependentUpon>FrmBrowser.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="FrmAbout.resx">
<EmbeddedResource Include="UI\FrmAbout.resx">
<DependentUpon>FrmAbout.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmBrowser.resx">
<EmbeddedResource Include="UI\FrmBrowser.resx">
<DependentUpon>FrmBrowser.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmEditActionItem.resx">
<EmbeddedResource Include="UI\FrmEditActionItem.resx">
<DependentUpon>FrmEditActionItem.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMain.resx">
<EmbeddedResource Include="UI\FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="BaseTrayForm.resx">
<EmbeddedResource Include="UI\BaseTrayForm.resx">
<DependentUpon>BaseTrayForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmVlcPlayer.resx">
<EmbeddedResource Include="UI\FrmVlcPlayer.resx">
<DependentUpon>FrmVlcPlayer.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
Expand All @@ -145,7 +145,6 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include=".editorconfig" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand Down
4 changes: 2 additions & 2 deletions BaseTrayForm.Designer.cs → UI/BaseTrayForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions BaseTrayForm.cs → UI/BaseTrayForm.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
using System;
using System.Drawing;
using System.Windows.Forms;
using Traything.Data;

namespace Traything
namespace Traything.UI
{
public partial class BaseTrayForm : Form
{
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions FrmAbout.Designer.cs → UI/FrmAbout.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion FrmAbout.cs → UI/FrmAbout.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Diagnostics;
using System.Windows.Forms;

namespace Traything
namespace Traything.UI
{
public partial class FrmAbout : Form
{
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions FrmBrowser.Designer.cs → UI/FrmBrowser.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions FrmBrowser.cs → UI/FrmBrowser.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using CefSharp;
using CefSharp;
using CefSharp.WinForms;
using System;
using System.Globalization;
using System.IO;
using System.Windows.Forms;
using Traything.Data;

namespace Traything
namespace Traything.UI
{
public partial class FrmBrowser : BaseTrayForm
{
Expand Down
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions FrmEditActionItem.cs → UI/FrmEditActionItem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using System;
using System.Windows.Forms;
using Traything.Data;

namespace Traything
namespace Traything.UI
{
public partial class FrmEditActionItem : Form
{
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion FrmMain.Designer.cs → UI/FrmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion FrmMain.cs → UI/FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
using System.Net;
using System.Threading.Tasks;
using System.Windows.Forms;
using Traything.Data;

namespace Traything
namespace Traything.UI
{
public partial class FrmMain : Form
{
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions FrmVlcPlayer.Designer.cs → UI/FrmVlcPlayer.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion FrmVlcPlayer.cs → UI/FrmVlcPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
using System;
using System.IO;
using System.Windows.Forms;
using Traything.Data;

namespace Traything
namespace Traything.UI
{
public partial class FrmVlcPlayer : BaseTrayForm
{
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 17adc12

Please sign in to comment.