Skip to content

Commit

Permalink
Added Settings<T> in file to Setting and suppressed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemK123 committed Oct 22, 2020
1 parent 00dac5a commit c00e398
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
26 changes: 25 additions & 1 deletion PixiEditor/Models/Tools/ToolSettings/Settings/Setting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,31 @@
using PixiEditor.Helpers;

namespace PixiEditor.Models.Tools.ToolSettings.Settings
{
{
[System.Diagnostics.CodeAnalysis.SuppressMessage(
"StyleCop.CSharp.MaintainabilityRules",
"SA1402:File may only contain a single type",
Justification = "Same class with generic value")]
public abstract class Setting<T> : Setting
{
private T value;

protected Setting(string name)
: base(name)
{
}

public T Value
{
get => value;
set
{
this.value = value;
RaisePropertyChanged("Value");
}
}
}

public abstract class Setting : NotifyableObject
{
protected Setting(string name)
Expand Down
22 changes: 0 additions & 22 deletions PixiEditor/Models/Tools/ToolSettings/Settings/Setting{T}.cs

This file was deleted.

0 comments on commit c00e398

Please sign in to comment.