root / GES_PAC / Model / PhaseCalibration.cs @ 6f451cc1
Historique | Voir | Annoter | Télécharger (783 octets)
1 |
using SQLite; |
---|---|
2 |
|
3 |
namespace GES_PAC.Model |
4 |
{ |
5 |
public class PhaseCalibration |
6 |
{ |
7 |
#region Propri?t?s |
8 |
[PrimaryKey, AutoIncrement] |
9 |
public int Id { get; set; } |
10 |
public string Name { get; set; } |
11 |
public int Value { get; set; } |
12 |
#endregion |
13 |
|
14 |
#region Constructeurs |
15 |
public PhaseCalibration() { } |
16 |
private PhaseCalibration(string name, int value) |
17 |
{ |
18 |
Name = name; |
19 |
Value = value; |
20 |
} |
21 |
#endregion |
22 |
|
23 |
public static readonly PhaseCalibration DEBUT = new("d?but", 1); |
24 |
public static readonly PhaseCalibration FIN = new("fin", 2); |
25 |
|
26 |
public static readonly List<PhaseCalibration> All = new() { DEBUT, FIN }; |
27 |
|
28 |
public override string ToString() => Name; |
29 |
|
30 |
} |
31 |
} |