Skip to content

Commit

Permalink
Flattens namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
roryclaasen committed Jul 12, 2023
1 parent 915927b commit f7fde6b
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Mosaic.Infrastructure/Config/Loader/ConfigLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// </copyright>
// ------------------------------------------------------------------------------

namespace Mosaic.Infrastructure.Config.Loader
namespace Mosaic.Infrastructure
{
using Newtonsoft.Json;

Expand Down
2 changes: 1 addition & 1 deletion Mosaic.Infrastructure/Config/Loader/ConfigLoader{T}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// </copyright>
// ------------------------------------------------------------------------------

namespace Mosaic.Infrastructure.Config.Loader
namespace Mosaic.Infrastructure
{
using System.IO;
using Newtonsoft.Json;
Expand Down
2 changes: 1 addition & 1 deletion Mosaic.Infrastructure/Config/Loader/IConfigLoader{T}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// </copyright>
// ------------------------------------------------------------------------------

namespace Mosaic.Infrastructure.Config.Loader
namespace Mosaic.Infrastructure
{
public interface IConfigLoader<T>
{
Expand Down
2 changes: 1 addition & 1 deletion Mosaic.Infrastructure/Config/MosaicConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// </copyright>
// ------------------------------------------------------------------------------

namespace Mosaic.Infrastructure.Config
namespace Mosaic.Infrastructure
{
using System.Collections.Generic;
using Newtonsoft.Json;
Expand Down
2 changes: 1 addition & 1 deletion Mosaic.Infrastructure/Config/SourceConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// </copyright>
// ------------------------------------------------------------------------------

namespace Mosaic.Infrastructure.Config
namespace Mosaic.Infrastructure
{
using Newtonsoft.Json;

Expand Down
3 changes: 1 addition & 2 deletions Mosaic.Infrastructure/Events/TileSourceEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
// </copyright>
// ------------------------------------------------------------------------------

namespace Mosaic.Infrastructure.Events
namespace Mosaic.Infrastructure
{
using System;
using Mosaic.Infrastructure.Config;

public class TileSourceEventArgs : EventArgs
{
Expand Down
2 changes: 0 additions & 2 deletions Mosaic.Infrastructure/MosaicManager.Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ namespace Mosaic.Infrastructure
{
using System;
using LibVLCSharp.Shared;
using Mosaic.Infrastructure.Config;
using Mosaic.Infrastructure.Events;

public partial class MosaicManager
{
Expand Down
2 changes: 0 additions & 2 deletions Mosaic.Infrastructure/MosaicManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ namespace Mosaic.Infrastructure
using System.Collections.Generic;
using System.Linq;
using LibVLCSharp.Shared;
using Mosaic.Infrastructure.Config;
using Mosaic.Infrastructure.Events;

public partial class MosaicManager
{
Expand Down
3 changes: 1 addition & 2 deletions Mosaic/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ namespace Mosaic
{
using System.IO;
using Microsoft.UI.Xaml;
using Mosaic.Infrastructure.Config;
using Mosaic.Infrastructure.Config.Loader;
using Mosaic.Infrastructure;
using Newtonsoft.Json;
using Windows.ApplicationModel;

Expand Down
19 changes: 19 additions & 0 deletions Mosaic/Config/ConfigLoader.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// ------------------------------------------------------------------------------
// <copyright file="ConfigLoader.cs" company="Rory Claasen">
// Copyright (c) Rory Claasen. All rights reserved.
// </copyright>
// ------------------------------------------------------------------------------

namespace Mosaic
{
using Mosaic.Infrastructure;
using Newtonsoft.Json;

public class ConfigLoader : ConfigLoader<MosaicConfig>, IConfigLoader<MosaicConfig>
{
public ConfigLoader(JsonSerializer serializer)
: base(serializer)
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
// </copyright>
// ------------------------------------------------------------------------------

namespace Mosaic.Infrastructure.Config
namespace Mosaic
{
using Mosaic.Infrastructure;
using Newtonsoft.Json;

public record MosaicApplicationConfig : MosaicConfig
Expand Down
5 changes: 0 additions & 5 deletions Mosaic/MosaicWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ namespace Mosaic
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Mosaic.Infrastructure;
using Mosaic.Infrastructure.Config;
using Mosaic.Infrastructure.Events;
using Windows.UI.Core;

/// <summary>
Expand Down Expand Up @@ -50,9 +48,6 @@ public MosaicWindow()
};
this.swapTimer.Tick += (o, e) => this.mosaicManager.SwapTiles(this.GetLibVLC);

// this.KeyUp += this.MosaicView_KeyUp;
// this.Closing += this.MosaicView_Closing;

foreach (var tile in this.GetVideoTiles())
{
tile.Initialized += this.ViewView_Initailized;
Expand Down

0 comments on commit f7fde6b

Please sign in to comment.