diff options
Diffstat (limited to 'UVtools.WPF/Structures/SlicerProperty.cs')
-rw-r--r-- | UVtools.WPF/Structures/SlicerProperty.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/UVtools.WPF/Structures/SlicerProperty.cs b/UVtools.WPF/Structures/SlicerProperty.cs new file mode 100644 index 0000000..94cdc82 --- /dev/null +++ b/UVtools.WPF/Structures/SlicerProperty.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Text; +using Avalonia; +using ReactiveUI; + +namespace UVtools.WPF.Structures +{ + public class SlicerProperty : ReactiveObject + { + private string _name; + private string _value; + private string _group; + + public string Name + { + get => _name; + set => this.RaiseAndSetIfChanged(ref _name, value); + } + + public string Value + { + get => _value; + set => this.RaiseAndSetIfChanged(ref _value, value); + } + + public string Group + { + get => _group; + set => this.RaiseAndSetIfChanged(ref _group, value); + } + + public SlicerProperty(string name, string value, string group = null) + { + _name = name; + _value = value; + _group = group; + } + } +} |