diff --git a/uniper_hmi/UniperHMI/Common/MediaContainer.xaml b/uniper_hmi/UniperHMI/Common/MediaContainer.xaml
index a4c410e..336561c 100644
--- a/uniper_hmi/UniperHMI/Common/MediaContainer.xaml
+++ b/uniper_hmi/UniperHMI/Common/MediaContainer.xaml
@@ -16,21 +16,22 @@
-
-
-
+
+
+
-
-
-
-
+
+
+
+
@@ -43,7 +44,7 @@
-
+
@@ -71,13 +72,11 @@
-
-
-
-
-
+
+
+
-
+ FontSize="30"/>-->
-
-
+ FontSize="30"/>-->
+
diff --git a/uniper_hmi/UniperHMI/Common/MediaContainerVm.cs b/uniper_hmi/UniperHMI/Common/MediaContainerVm.cs
index 88b11f6..ac427a2 100644
--- a/uniper_hmi/UniperHMI/Common/MediaContainerVm.cs
+++ b/uniper_hmi/UniperHMI/Common/MediaContainerVm.cs
@@ -19,18 +19,23 @@ public sealed partial class MediaContainerVm : ObservableValidator, IDisposable
[ObservableProperty] private bool full = false;
[ObservableProperty] private bool overload = false;
+
+ [ObservableProperty] private BinaryValveControlVM? fillValveControlVm;
- [ObservableProperty] private HMIControlButtonVM? emptyButton;
-
- [ObservableProperty] private HMIControlButtonVM? fillButton;
+ [ObservableProperty] private BinaryValveControlVM? drainValveControlVm;
+ [ObservableProperty] private BinaryValveControlVM? pumpValveControlVm;
+
public MediaContainerVm()
{
sName = "No Name";
- EmptyButton = new HMIControlButtonVM();
- FillButton = new HMIControlButtonVM();
+ FillValveControlVm = new();
+ DrainValveControlVm = new();
+ PumpValveControlVm = new();
+
+
}
@@ -41,8 +46,10 @@ public sealed partial class MediaContainerVm : ObservableValidator, IDisposable
sName = "No Name";
- EmptyButton = new HMIControlButtonVM(_adsManager, _variableName + ".stEmptyButton");
- FillButton = new HMIControlButtonVM(_adsManager, _variableName + ".stFillButton");
+ FillValveControlVm = new BinaryValveControlVM(_adsManager, _variableName + ".stFillingValve");
+ DrainValveControlVm = new BinaryValveControlVM(_adsManager, _variableName + ".stDrainValve");
+ PumpValveControlVm = new BinaryValveControlVM(_adsManager, _variableName + ".stPumpValve");
+
_adsManager.Register(_variableName + ".xEmpty", EmptyChanged);
_adsManager.Register(_variableName + ".xFull", FullChanged);
_adsManager.Register(_variableName + ".xOverload", OverloadChanged);
@@ -62,12 +69,16 @@ public sealed partial class MediaContainerVm : ObservableValidator, IDisposable
}
public void Dispose()
{
- EmptyButton?.Dispose();
- EmptyButton = null;
- FillButton?.Dispose();
- FillButton = null;
+ FillValveControlVm?.Dispose();
+ DrainValveControlVm?.Dispose();
+ PumpValveControlVm?.Dispose();
- _adsManager?.Deregister(_variableName + ".xEmpty", EmptyChanged);
+ FillValveControlVm = null;
+ DrainValveControlVm = null;
+ PumpValveControlVm = null;
+
+
+ _adsManager?.Deregister(_variableName + ".xEmpty", EmptyChanged);
_adsManager?.Deregister(_variableName + ".xFull", FullChanged);
_adsManager?.Deregister(_variableName + ".xOverload", OverloadChanged);
}
diff --git a/uniper_hmi/UniperHMI/HMIToolkit/HMIObjects/BinaryValveControl/BinaryValveControl.xaml b/uniper_hmi/UniperHMI/HMIToolkit/HMIObjects/BinaryValveControl/BinaryValveControl.xaml
index c4c5a02..73166fe 100644
--- a/uniper_hmi/UniperHMI/HMIToolkit/HMIObjects/BinaryValveControl/BinaryValveControl.xaml
+++ b/uniper_hmi/UniperHMI/HMIToolkit/HMIObjects/BinaryValveControl/BinaryValveControl.xaml
@@ -27,7 +27,7 @@
-
+
@@ -52,8 +52,8 @@
-
-
+
+
@@ -68,8 +68,8 @@
-
-
+
+
diff --git a/uniper_hmi/UniperHMI/HMIToolkit/HMIObjects/InterlockControl/IntlkControl.xaml b/uniper_hmi/UniperHMI/HMIToolkit/HMIObjects/InterlockControl/IntlkControl.xaml
index 2ac5107..7f6dd58 100644
--- a/uniper_hmi/UniperHMI/HMIToolkit/HMIObjects/InterlockControl/IntlkControl.xaml
+++ b/uniper_hmi/UniperHMI/HMIToolkit/HMIObjects/InterlockControl/IntlkControl.xaml
@@ -16,15 +16,15 @@
-