1234567891011121314151617181920212223242526272829 |
- using PixiEditor.Helpers;
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Windows.Controls;
- namespace PixiEditor.Models.Tools.ToolSettings
- {
- public abstract class Setting : NotifyableObject
- {
- public string Name { get; protected set; }
- public string Label { get; set; }
- public bool HasLabel => !string.IsNullOrEmpty(Label);
- private object value;
- public object Value { get => value;
- set
- {
- this.value = value;
- RaisePropertyChanged("Value");
- }
- }
- public Control SettingControl { get; set; }
- public Setting(string name)
- {
- Name = name;
- }
- }
- }
|