Skip to content

Commit

Permalink
Separate ui library (#10)
Browse files Browse the repository at this point in the history
* Made common project

* Amended namespaces

* Renamed Pomo-Shiny project

Co-authored-by: Sara Gowen <[email protected]>
  • Loading branch information
dynamictulip and Sara Gowen authored Oct 10, 2020
1 parent 6066dae commit 25f6271
Show file tree
Hide file tree
Showing 43 changed files with 133 additions and 87 deletions.
8 changes: 0 additions & 8 deletions Pomo-Shiny/Styles/Converters.xaml

This file was deleted.

10 changes: 8 additions & 2 deletions Pomo-Shiny.sln → Ponydoro.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29409.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pomo-Shiny", "Pomo-Shiny\Pomo-Shiny.csproj", "{54CD4444-BF93-406E-AB2A-6DF12AE1CEE1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ponydoro_WPF", "Ponydoro_WPF\Ponydoro_WPF.csproj", "{54CD4444-BF93-406E-AB2A-6DF12AE1CEE1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{5EFDA017-91A0-4222-AE35-0B633CBBF65C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests", "Tests\Tests.csproj", "{5EFDA017-91A0-4222-AE35-0B633CBBF65C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ponydoro_Common", "Ponydoro_Common\Ponydoro_Common.csproj", "{FD2956BA-8969-40F1-87B9-F472A62C8095}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -21,6 +23,10 @@ Global
{5EFDA017-91A0-4222-AE35-0B633CBBF65C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5EFDA017-91A0-4222-AE35-0B633CBBF65C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5EFDA017-91A0-4222-AE35-0B633CBBF65C}.Release|Any CPU.Build.0 = Release|Any CPU
{FD2956BA-8969-40F1-87B9-F472A62C8095}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FD2956BA-8969-40F1-87B9-F472A62C8095}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FD2956BA-8969-40F1-87B9-F472A62C8095}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FD2956BA-8969-40F1-87B9-F472A62C8095}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Pomo_Shiny
namespace Ponydoro_Common
{
public interface ICountdownTimer
{
Expand Down
7 changes: 7 additions & 0 deletions Ponydoro_Common/ISoundProvider.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Ponydoro_Common
{
public interface ISoundProvider
{
void MakeSound();
}
}
7 changes: 7 additions & 0 deletions Ponydoro_Common/Ponydoro_Common.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

</Project>
4 changes: 2 additions & 2 deletions Pomo-Shiny/TimerFacade.cs → Ponydoro_Common/TimerFacade.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Threading;

namespace Pomo_Shiny
namespace Ponydoro_Common
{
public interface ITimerFacade
{
Expand All @@ -10,7 +10,7 @@ public interface ITimerFacade
}

[ExcludeFromCodeCoverage]
internal class TimerFacade : ITimerFacade
public class TimerFacade : ITimerFacade
{
private Timer _timer;

Expand Down
2 changes: 1 addition & 1 deletion Pomo-Shiny/App.xaml → Ponydoro_WPF/App.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Application x:Class="Pomo_Shiny.App"
<Application x:Class="Ponydoro_WPF.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
Expand Down
3 changes: 2 additions & 1 deletion Pomo-Shiny/App.xaml.cs → Ponydoro_WPF/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
using System.Windows;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Ponydoro_Common;

namespace Pomo_Shiny
namespace Ponydoro_WPF
{
/// <summary>
/// Interaction logic for App.xaml
Expand Down
4 changes: 1 addition & 3 deletions Pomo-Shiny/AppSettings.cs → Ponydoro_WPF/AppSettings.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.Extensions.Configuration;

namespace Pomo_Shiny
namespace Ponydoro_WPF
{
public class AppSettings
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Windows;

namespace Pomo_Shiny
namespace Ponydoro_WPF
{
public interface IApplicationAccessor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Windows;
using System.Windows.Data;

namespace Pomo_Shiny.Converters
namespace Ponydoro_WPF.Converters
{
public class BoolToVisibilityConverter : IValueConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Window x:Class="Pomo_Shiny.MainWindow"
<Window x:Class="Ponydoro_WPF.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System.Configuration;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.CodeAnalysis;
using System.Windows;
using System.Windows.Input;

namespace Pomo_Shiny
namespace Ponydoro_WPF
{
/// <summary>
/// Interaction logic for MainWindow.xaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using Microsoft.Extensions.Configuration;
using System;
using System;
using System.Windows.Input;
using Microsoft.Extensions.Options;
using Ponydoro_Common;
using Ponydoro_WPF.Mvvm;

namespace Pomo_Shiny
namespace Ponydoro_WPF
{
public class MainWindowViewModel : ObservableObject
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Windows.Input;

namespace Pomo_Shiny
namespace Ponydoro_WPF.Mvvm
{
[ExcludeFromCodeCoverage]
public class DelegateCommand : ICommand
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;

namespace Pomo_Shiny
namespace Ponydoro_WPF.Mvvm
{
[ExcludeFromCodeCoverage]
public abstract class ObservableObject : INotifyPropertyChanged
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>Pomo_Shiny</RootNamespace>
<RootNamespace>Ponydoro_WPF</RootNamespace>
<UseWPF>true</UseWPF>
<ApplicationIcon>Media/unicorn2_Pyo_12.ico</ApplicationIcon>
<AssemblyName>Ponydoro</AssemblyName>
</PropertyGroup>

<ItemGroup>
Expand All @@ -22,4 +23,8 @@
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.1.5" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Ponydoro_Common\Ponydoro_Common.csproj" />
</ItemGroup>

</Project>

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

File renamed without changes.

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

File renamed without changes.
10 changes: 3 additions & 7 deletions Pomo-Shiny/SoundProvider.cs → Ponydoro_WPF/SoundProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@
using System.IO;
using System.Linq;
using System.Media;
using Pomo_Shiny.Properties;
using Ponydoro_WPF.Properties;
using Ponydoro_Common;

namespace Pomo_Shiny
namespace Ponydoro_WPF
{
public interface ISoundProvider
{
void MakeSound();
}

[ExcludeFromCodeCoverage]
internal class SoundProvider : ISoundProvider
{
Expand Down
Loading

0 comments on commit 25f6271

Please sign in to comment.