blob: 7399d62af0b70d1031010d4b57de96529da55a35 (
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
42
43
44
45
46
47
48
49
50
51
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.Core;
using Tango.SharedUI;
namespace Tango.MachineStudio.RML.ViewModels
{
public class LiquidVolumeVM : ExtendedObject
{
public event EventHandler<double> VolumeChanged;
private String _name;
public String Name
{
get { return _name; }
set { _name = value; RaisePropertyChangedAuto(); }
}
private double _volume;
public double Volume
{
get { return _volume; }
set
{
_volume = value; RaisePropertyChangedAuto();
VolumeChanged?.Invoke(this, _volume);
}
}
private int _color;
public int Color
{
get { return _color; }
set { _color = value; RaisePropertyChangedAuto(); }
}
private LiquidType _liquidType;
public LiquidType LiquidType
{
get { return _liquidType; }
set { _liquidType = value; RaisePropertyChangedAuto(); }
}
}
}
|