Révision e837cdf1 GES_PAC/ViewModel/ChambersViewModel.cs
GES_PAC/ViewModel/ChambersViewModel.cs | ||
---|---|---|
1 |
using GES_PAC.Model; |
|
2 | 1 |
using GES_PAC.View; |
2 |
using GES_PAC.ViewModel.Controls; |
|
3 |
using System.Collections.ObjectModel; |
|
3 | 4 |
using System.Windows.Input; |
4 | 5 |
|
5 | 6 |
namespace GES_PAC.ViewModel |
6 | 7 |
{ |
7 | 8 |
public class ChambersViewModel : BaseViewModel |
8 | 9 |
{ |
9 |
|
|
10 | 10 |
#region Attributs |
11 |
|
|
12 | 11 |
#endregion |
13 | 12 |
|
14 | 13 |
#region Commandes |
... | ... | |
16 | 15 |
#endregion |
17 | 16 |
|
18 | 17 |
#region Propriétés |
19 |
|
|
18 |
public ObservableCollection<ChamberButtonViewModel> Chambers { get; } = new(); |
|
19 |
public TimerPublisher Timer { get; } |
|
20 | 20 |
#endregion |
21 | 21 |
|
22 | 22 |
#region Constructeurs |
23 | 23 |
public ChambersViewModel() |
24 | 24 |
{ |
25 | 25 |
TerminateSetCommand = new Command(async () => await TerminateSet()); |
26 |
|
|
27 |
Timer = new TimerPublisher(); |
|
28 |
Timer.Start(); |
|
26 | 29 |
} |
27 | 30 |
#endregion |
28 | 31 |
|
Formats disponibles : Unified diff