Ejemplo n.º 1
0
 protected void OnRemoveControlLines(object sender, CircuitAreaEventArgs args)
 {
     if (args.Area.IsWithin(Column, Row, Column, Row))
     {
         RemoveControlLine();
     }
 }
Ejemplo n.º 2
0
 public void OnBlank(object sender, CircuitAreaEventArgs args)
 {
     if (args.Area.IsWithin(Column, Row, Column, Row))
     {
         Background = Brushes.White;
     }
 }
Ejemplo n.º 3
0
 public void OnFree(object sender, CircuitAreaEventArgs args)
 {
     if (args.Area.IsWithin(Column, Row, Column, Row))
     {
         Occupied = false;
         ContainsConnectingGate = false;
     }
 }
Ejemplo n.º 4
0
 protected void OnDrawControlLines(object sender, CircuitAreaEventArgs args)
 {
     if (args.Area.IsWithin(Column, Row, Column, Row))
     {
         if ((args.Area.Bottom - args.Area.Top) == 0)
         {
             RemoveControlLine();
         }
         else if (args.Area.Bottom == Row)
         {
             DrawControlLine(ControlGate.DIRECTION.UP);
         }
         else if (args.Area.Top == Row)
         {
             DrawControlLine(ControlGate.DIRECTION.DOWN);
         }
         else
         {
             DrawControlLine();
         }
     }
 }