diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-05-24 11:16:50 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-05-24 11:16:50 +0300 |
| commit | d7a0d5e8d6804f5f739c223c123b4b2780af4e11 (patch) | |
| tree | 8e0f9325e037df97b7fa4feabbc4fed4b6d270b9 /Software/Visual_Studio/PPC/Tango.PPC.UI/Models/MachineOverviewErrorStates.cs | |
| parent | bc94c84ee20ea01618241e8a4d32c2a77b4084cc (diff) | |
| download | Tango-d7a0d5e8d6804f5f739c223c123b4b2780af4e11.tar.gz Tango-d7a0d5e8d6804f5f739c223c123b4b2780af4e11.zip | |
Added Lo error in case when WindersInErrors and... array is less then 4.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Models/MachineOverviewErrorStates.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Models/MachineOverviewErrorStates.cs | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Models/MachineOverviewErrorStates.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Models/MachineOverviewErrorStates.cs index d293c4418..1863b01e1 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Models/MachineOverviewErrorStates.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Models/MachineOverviewErrorStates.cs @@ -31,18 +31,27 @@ namespace Tango.PPC.UI.Models public void UpdateWinders(List<bool> updates) { - UpdateCollection(Winders, updates); + if(!UpdateCollection(Winders, updates)) + { + LogManager.Log("Error in display Winders Errors. Number of Winders In Error is less then 4!"); + } } public void UpdateDancers(List<bool> updates) { - UpdateCollection(Dancers, updates); + if(!UpdateCollection(Dancers, updates)) + { + LogManager.Log("Error in display Dancers Errors. Number of Dancers In Error is less then 4!"); + } } public void UpdateBTSRs(List<bool> updates) { - UpdateCollection(BTSRs, updates); + if(!UpdateCollection(BTSRs, updates)) + { + LogManager.Log("Error in display BTSRs Errors. Number of BTSRs In Error is less then 4!"); + } } - private void UpdateCollection(ObservableCollection<MachineOverviewErrorItem> collection, List<bool> updates ) + private bool UpdateCollection(ObservableCollection<MachineOverviewErrorItem> collection, List<bool> updates ) { if (collection.Count == updates.Count) { @@ -50,7 +59,10 @@ namespace Tango.PPC.UI.Models { collection[i].IsErrorState = updates[i]; } + return true; } + return false; + } } } |
