diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-12-09 15:40:36 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-12-09 15:40:36 +0200 |
| commit | 87f3462d4b9498df5f6deeca70ab8340e386574c (patch) | |
| tree | bf58df12413a3d6a324c604eeaf8b6b85de78899 /Software/Visual_Studio/Tango.BL/Entities | |
| parent | 889e372e720f096f3142cb6a5200361883a2c7be (diff) | |
| download | Tango-87f3462d4b9498df5f6deeca70ab8340e386574c.tar.gz Tango-87f3462d4b9498df5f6deeca70ab8340e386574c.zip | |
Fixed some bugs.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/BrushStop.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/BrushStop.cs b/Software/Visual_Studio/Tango.BL/Entities/BrushStop.cs index 41ebbee7c..a8d94ff8c 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/BrushStop.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/BrushStop.cs @@ -506,11 +506,15 @@ namespace Tango.BL.Entities { LiquidVolumes = new ObservableCollection<LiquidVolume>(); - foreach (var idsPack in configuration.GetSupportedIdsPacks(rml)) + + lock (LiquidVolumes) { - var liquidVolume = new LiquidVolume(configuration, idsPack, rml, processParametersTable, this); - liquidVolume.VolumeChanged += LiquidVolume_VolumeChanged; - LiquidVolumes.Add(liquidVolume); + foreach (var idsPack in configuration.GetSupportedIdsPacks(rml)) + { + var liquidVolume = new LiquidVolume(configuration, idsPack, rml, processParametersTable, this); + liquidVolume.VolumeChanged += LiquidVolume_VolumeChanged; + LiquidVolumes.Add(liquidVolume); + } } foreach (var volume in LiquidVolumes.ToList()) |
