예제 #1
0
        public AddGate(GateInkCanvas gc, Gate gate)
            : base(gate, gc)
        {

        }
예제 #2
0
        public MoveGate(Gate g, GateInkCanvas gc, Point origin, Point dest)
            : base(g, gc)
        {

            this.origin = origin;
            this.dest = dest;

        }
예제 #3
0
        public RotateGate(Gate g, GateInkCanvas gc, double origin, double dest)
            : base(g, gc)
        {

            this.origin = origin;
            this.dest = dest;

        }
예제 #4
0
        public TrackingGate(Gate g, GateInkCanvas gc)
        {
            this.g = g;
            this.gc = gc;
            gc.Circuit.ReplaceGates += (sender2, e2) =>
            {
                if (e2.ContainsKey(this.g.AbGate) && e2[this.g.AbGate] != null)
                {
                    Gate og = this.g;
                    Gate ng = gc.FindGate(e2[this.g.AbGate]);
                    this.g = ng;

                }
            };
        }