public void AttachTo(ListHex node) { if (node != null && node.Owner == Owner) { Attached = Attached.Add(node.Attached).PointwiseMinimum(1.0); } SetEdgeAttachedStatuses(); }
static protected void Attach(Control control) { if (Attached == null) { Attached = new List <Control>(); } Attached.Add(control); control.VisibleChanged += HandleControl_VisibleChanged; if (control is ITranslatable) { (control as ITranslatable).OnTranslate(); } }