예제 #1
0
        public Resistor(ComponentDirection direction, double resistance, double voltage, double current)
            : base(direction, resistance, voltage, current)
        {
            ImageUp = Resources.Resistor;
            ImageUp.RotateFlip(RotateFlipType.Rotate90FlipNone);
            ImageRight = Resources.Resistor;
            ImageDown  = Resources.Resistor;
            ImageDown.RotateFlip(RotateFlipType.Rotate90FlipNone);
            ImageLeft = Resources.Resistor;

            ComponentType = ComponentType.Resistor;
            Direction     = direction;
        }
예제 #2
0
파일: Cell.cs 프로젝트: Goregius/MyProjects
        public Cell(ComponentDirection direction, double resistance, double voltage, double current)
            : base(direction, resistance, voltage, current)
        {
            ImageUp = Resources.Power_Supply;
            ImageUp.RotateFlip(RotateFlipType.Rotate90FlipY);
            ImageRight = Resources.Power_Supply;
            ImageDown  = Resources.Power_Supply;
            ImageDown.RotateFlip(RotateFlipType.Rotate90FlipNone);
            ImageLeft = Resources.Power_Supply;
            ImageLeft.RotateFlip(RotateFlipType.RotateNoneFlipX);

            ComponentType = ComponentType.Cell;
            Direction     = direction;
        }
예제 #3
0
        public WireThreeWay(ComponentDirection direction, double resistance, double voltage, double current)
            : base(direction, resistance, voltage, current)
        {
            //Direction is where the most anti clockwise wire is facing.
            //E.g. For up right, the most anti clockwise wire is facing to the right.
            ImageUp = Resources._3_Way_Up;
            ImageUp.RotateFlip(RotateFlipType.Rotate90FlipNone);
            ImageRight = Resources._3_Way_Up;
            ImageDown  = Resources._3_Way_Down;
            ImageDown.RotateFlip(RotateFlipType.Rotate90FlipNone);
            ImageLeft = Resources._3_Way_Down;


            ComponentType = ComponentType.WireThreeWay;
            Direction     = direction;
        }