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
@@ -0,0 +1,28 @@
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
namespace PamhagenSysCtrl.Helpers.Pipeline {
public class PipeJoin : INode {
public double CenterX { get; set; }
public double CenterY { get; set; }
public string Label { get; } = "";
public PipeJoin(double x, double y) {
CenterX = x;
CenterY = y;
}
public void Draw(Canvas canvas) {
var e = new Rectangle() {
Height = 18,
Width = 18,
Fill = Brushes.Black,
};
e.SetValue(Canvas.LeftProperty, CenterX - 9);
e.SetValue(Canvas.TopProperty, CenterY - 9);
canvas.Children.Add(e);
}
}
}