Add PlantSchemeWindow

This commit is contained in:
2026-07-10 16:15:15 +02:00
parent ac2eafc8c6
commit a3a0504c11
16 changed files with 350 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
using System.Windows.Controls;
namespace PamhagenSysCtrl.Helpers.Pipeline {
class Tank : INode, ISink, ISource {
public double CenterX { get; set; }
public double CenterY { get; set; }
public string Label { get; set; }
public bool IsFull => CallbackIsFull();
public bool IsFilled => CallbackIsFilled();
protected Func<bool> CallbackIsFilled;
protected Func<bool> CallbackIsFull;
public Tank(string label, double x, double y, Func<bool> cbFilled, Func<bool> cbFull) {
CenterX = x;
CenterY = y;
Label = label;
CallbackIsFilled = cbFilled;
CallbackIsFull = cbFull;
}
public void Draw(Canvas canvas) {
}
}
}