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