|
@@ -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)
|