protected void OnRemoveControlLines(object sender, CircuitAreaEventArgs args) { if (args.Area.IsWithin(Column, Row, Column, Row)) { RemoveControlLine(); } }
public void OnBlank(object sender, CircuitAreaEventArgs args) { if (args.Area.IsWithin(Column, Row, Column, Row)) { Background = Brushes.White; } }
public void OnFree(object sender, CircuitAreaEventArgs args) { if (args.Area.IsWithin(Column, Row, Column, Row)) { Occupied = false; ContainsConnectingGate = false; } }
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(); } } }