Exemplo n.º 1
0
 public void AttachTo(ListHex node)
 {
     if (node != null && node.Owner == Owner)
     {
         Attached = Attached.Add(node.Attached).PointwiseMinimum(1.0);
     }
     SetEdgeAttachedStatuses();
 }
Exemplo n.º 2
0
 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();
     }
 }