From df05244c858944885701b007e4832690d4b7911a Mon Sep 17 00:00:00 2001 From: Simon G Date: Thu, 8 Apr 2021 14:56:22 +0200 Subject: [PATCH] - move buttons - introduce mute button --- Lib.Audio/Controls/{ => Buttons}/Button.cs | 4 ++-- .../{ => Buttons}/Factories/IButtonFactory.cs | 5 +++-- .../Controls/{ => Buttons}/Interfaces/IButton.cs | 2 +- .../Controls/Buttons/Interfaces/IMuteButton.cs | 11 +++++++++++ Lib.Audio/Controls/Buttons/MuteButton.cs | 13 +++++++++++++ 5 files changed, 30 insertions(+), 5 deletions(-) rename Lib.Audio/Controls/{ => Buttons}/Button.cs (65%) rename Lib.Audio/Controls/{ => Buttons}/Factories/IButtonFactory.cs (58%) rename Lib.Audio/Controls/{ => Buttons}/Interfaces/IButton.cs (75%) create mode 100644 Lib.Audio/Controls/Buttons/Interfaces/IMuteButton.cs create mode 100644 Lib.Audio/Controls/Buttons/MuteButton.cs diff --git a/Lib.Audio/Controls/Button.cs b/Lib.Audio/Controls/Buttons/Button.cs similarity index 65% rename from Lib.Audio/Controls/Button.cs rename to Lib.Audio/Controls/Buttons/Button.cs index f635692..d0c8d20 100644 --- a/Lib.Audio/Controls/Button.cs +++ b/Lib.Audio/Controls/Buttons/Button.cs @@ -2,9 +2,9 @@ // Created: 2021-04-07 // Copyright(c) 2021 SimonG. All Rights Reserved. -using Lib.Audio.Controls.Interfaces; +using Lib.Audio.Controls.Buttons.Interfaces; -namespace Lib.Audio.Controls +namespace Lib.Audio.Controls.Buttons { public class Button : IButton { diff --git a/Lib.Audio/Controls/Factories/IButtonFactory.cs b/Lib.Audio/Controls/Buttons/Factories/IButtonFactory.cs similarity index 58% rename from Lib.Audio/Controls/Factories/IButtonFactory.cs rename to Lib.Audio/Controls/Buttons/Factories/IButtonFactory.cs index 5c234e4..9c2ae0f 100644 --- a/Lib.Audio/Controls/Factories/IButtonFactory.cs +++ b/Lib.Audio/Controls/Buttons/Factories/IButtonFactory.cs @@ -2,12 +2,13 @@ // Created: 2021-04-08 // Copyright(c) 2021 SimonG. All Rights Reserved. -using Lib.Audio.Controls.Interfaces; +using Lib.Audio.Controls.Buttons.Interfaces; -namespace Lib.Audio.Controls.Factories +namespace Lib.Audio.Controls.Buttons.Factories { public interface IButtonFactory { IButton Create(); + // IMuteButton Create(); } } \ No newline at end of file diff --git a/Lib.Audio/Controls/Interfaces/IButton.cs b/Lib.Audio/Controls/Buttons/Interfaces/IButton.cs similarity index 75% rename from Lib.Audio/Controls/Interfaces/IButton.cs rename to Lib.Audio/Controls/Buttons/Interfaces/IButton.cs index baf40ac..893a699 100644 --- a/Lib.Audio/Controls/Interfaces/IButton.cs +++ b/Lib.Audio/Controls/Buttons/Interfaces/IButton.cs @@ -2,7 +2,7 @@ // Created: 2021-04-07 // Copyright(c) 2021 SimonG. All Rights Reserved. -namespace Lib.Audio.Controls.Interfaces +namespace Lib.Audio.Controls.Buttons.Interfaces { public interface IButton { diff --git a/Lib.Audio/Controls/Buttons/Interfaces/IMuteButton.cs b/Lib.Audio/Controls/Buttons/Interfaces/IMuteButton.cs new file mode 100644 index 0000000..3920c1e --- /dev/null +++ b/Lib.Audio/Controls/Buttons/Interfaces/IMuteButton.cs @@ -0,0 +1,11 @@ +// Author: Gockner, Simon +// Created: 2021-04-08 +// Copyright(c) 2021 SimonG. All Rights Reserved. + +namespace Lib.Audio.Controls.Buttons.Interfaces +{ + public interface IMuteButton : IButton + { + + } +} \ No newline at end of file diff --git a/Lib.Audio/Controls/Buttons/MuteButton.cs b/Lib.Audio/Controls/Buttons/MuteButton.cs new file mode 100644 index 0000000..0fa3c35 --- /dev/null +++ b/Lib.Audio/Controls/Buttons/MuteButton.cs @@ -0,0 +1,13 @@ +// Author: Gockner, Simon +// Created: 2021-04-08 +// Copyright(c) 2021 SimonG. All Rights Reserved. + +using Lib.Audio.Controls.Buttons.Interfaces; + +namespace Lib.Audio.Controls.Buttons +{ + public class MuteButton : Button, IMuteButton + { + + } +} \ No newline at end of file