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 ISet Inputs { get; init; } public ISet Outputs { get; init; } public PipeJoin(double x, double y) { CenterX = x; CenterY = y; Inputs = new HashSet(); Outputs = new HashSet(); } 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); } public bool Update(double x, double y) { return false; } } }