Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SlicerProperty.cs « Structures « UVtools.WPF - github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94cdc829afb7ad39ff9143d7589a19b749430a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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;
        }
    }
}