Add switcher
This commit is contained in:
@@ -74,8 +74,26 @@ namespace PamhagenSysCtrl.Windows {
|
||||
} else {
|
||||
App.Plant?.StartRebler();
|
||||
}
|
||||
} else if (c is Switcher switcher) {
|
||||
if (App.Plant?.WantA1Selected ?? false) {
|
||||
App.Plant?.SelectA2();
|
||||
} else {
|
||||
App.Plant?.SelectA1();
|
||||
}
|
||||
} else if (c is EncasedAuger auger) {
|
||||
//
|
||||
if (auger == Graph.Auger1) {
|
||||
if (auger.IsActive) {
|
||||
App.Plant?.StopAuger1();
|
||||
} else {
|
||||
App.Plant?.StartAuger1();
|
||||
}
|
||||
} else if (auger == Graph.Auger2) {
|
||||
if (auger.IsActive) {
|
||||
App.Plant?.StopAuger2();
|
||||
} else {
|
||||
App.Plant?.StartAuger2();
|
||||
}
|
||||
}
|
||||
} else if (c is ConveyorBelt belt) {
|
||||
if (belt.IsActive) {
|
||||
App.Plant?.StopBelt();
|
||||
|
||||
Reference in New Issue
Block a user