コード例 #1
0
ファイル: G_ExportPin.cs プロジェクト: ZQiu233/DCSimulator
 public G_ExportPin() : base(ContentView.GetNextIndex("P"))
 {
     Width  = 1;
     Height = 4;
     Pin    = new G_Pin(this, "IN");
     Pins.Add(Pin);
     Direction = Direction.Left;
 }
コード例 #2
0
ファイル: G_Gate_Binary.cs プロジェクト: ZQiu233/DCSimulator
        public override object Clone()
        {
            var obj = new G_Gate_Binary(ContentView.GetNextIndex(NameRoot), GateType, NameRoot)
            {
                Position  = Position,
                Direction = Direction
            };

            return(obj);
        }