Cleanup and Enhancement
This commit is contained in:
@@ -27,7 +27,9 @@ namespace PamhagenSysCtrl {
|
||||
b.Click += (sender, evt) => {
|
||||
if (App.Plant == null || sender is not Button b) return;
|
||||
var i = int.Parse($"{b.Content}"[1..]);
|
||||
if (App.Plant.WantValveOpen(i)) {
|
||||
if (i > 57) {
|
||||
return;
|
||||
} else if (App.Plant.WantValveOpen(i)) {
|
||||
App.Plant.CloseV(i);
|
||||
} else {
|
||||
App.Plant.OpenV(i);
|
||||
|
||||
Reference in New Issue
Block a user