Exemple #1
0
        public DigitalTEMP(ITEMPDoubleSubject TEMPModel, Canvas canvas1)
        {
            this.canvas1 = canvas1;

            this.digit1 = new Digit(XPOS + 0 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit2 = new Digit(XPOS + 1 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit3 = new Digit(XPOS + 2 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);

            this.TEMPModel = TEMPModel;
            TEMPModel.RegisterObserver(this);
        }
Exemple #2
0
        public DigitalFUEL(IFUELDoubleSubject fuelModel, Canvas canvas1)
        {
            this.canvas1 = canvas1;

            this.digit1 = new Digit(XPOS + 0 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit2 = new Digit(XPOS + 1 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit3 = new Digit(XPOS + 2 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);

            this.fuelModel = fuelModel;
            fuelModel.RegisterObserver(this);
        }
Exemple #3
0
        public DigitalOIL(IOILDoubleSubject OILModel, Canvas canvas1)
        {
            this.canvas1 = canvas1;

            this.digit1 = new Digit(XPOS + 0 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit2 = new Digit(XPOS + 1 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit3 = new Digit(XPOS + 2 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);

            this.OILModel = OILModel;
            OILModel.RegisterObserver(this);
        }
Exemple #4
0
        public DigitalBAT(IBATDoubleSubject BATModel, Canvas canvas1)
        {
            this.canvas1 = canvas1;

            this.digit1 = new Digit(XPOS + 0 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit2 = new Digit(XPOS + 1 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit3 = new Digit(XPOS + 2 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);

            this.BATModel = BATModel;
            BATModel.RegisterObserver(this);
        }
Exemple #5
0
        public DigitalMPH(IMPHDoubleSubject mphmodel, Canvas canvas1, Brush brush1, int xpos, int ypos, int xsize, int ysize, int strokethickness, bool blankleading)
        {
            this.canvas1 = canvas1;
            this.blankleading = blankleading;
            this.digit1 = new Digit(xpos + 0 * (xsize + 6 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit2 = new Digit(xpos + 1 * (xsize + 6 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit3 = new Digit(xpos + 2 * (xsize + 6 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);

            this.mphmodel = mphmodel;
            mphmodel.RegisterObserver(this);
        }
Exemple #6
0
        public DigitalMPH(IMPHDoubleSubject mphmodel, Canvas canvas1)
        {
            this.canvas1 = canvas1;

            this.digit1 = new Digit(XPOS + 0 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit2 = new Digit(XPOS + 1 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit3 = new Digit(5 + XPOS + 2 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);

            this.mphmodel = mphmodel;
            mphmodel.RegisterObserver(this);
        }
Exemple #7
0
        public DigitalRPM(IRPMDoubleSubject rpmmodel, Canvas canvas1)
        {
            this.canvas1 = canvas1;

            this.digit1 = new Digit(XPOS + 0 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit2 = new Digit(XPOS + 1 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit3 = new Digit(5 + XPOS + 2 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit4 = new Digit(5 + XPOS + 3 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);

            this.rpmmodel = rpmmodel;
            rpmmodel.RegisterObserver(this);
        }
Exemple #8
0
        public DigitalTEMP(ITEMPDoubleSubject TEMPModel, Canvas canvas1, Brush brush1, int xpos, int ypos, int xsize, int ysize, int strokethickness, bool blankleading)
        {
            this.canvas1 = canvas1;
            this.blankleading = blankleading;

            this.digit1 = new Digit(xpos + 0 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit2 = new Digit(xpos + 1 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit3 = new Digit(xpos + 2 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);

            this.TEMPModel = TEMPModel;
            TEMPModel.RegisterObserver(this);
        }
        public DigitalTripometer(ITRIPDoubleSubject tripModel, Canvas canvas1)
        {
            this.canvas1 = canvas1;

            this.digit4 = new Digit(XPOS + 0 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit5 = new Digit(XPOS + 1 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit6 = new Digit(XPOS + 2 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit7 = new Digit(8 + XPOS + 3 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);

            this.odomodel = tripModel;
            tripModel.RegisterObserver(this);
        }
Exemple #10
0
        public DigitalTripometer(ITRIPDoubleSubject tripModel, Canvas canvas1, Brush brush1, int xpos, int ypos, int xsize, int ysize, int strokethickness, bool blankleading)
        {
            this.canvas1 = canvas1;
            this.blankleading = blankleading;

            this.digit4 = new Digit(xpos + 0 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit5 = new Digit(xpos + 1 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit6 = new Digit(xpos + 2 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit7 = new Digit(8 + xpos + 3 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);

            this.odomodel = tripModel;
            tripModel.RegisterObserver(this);
        }
Exemple #11
0
        public DigitalClock(ITimeSubject timemodel, Canvas canvas1)
        {
            this.canvas1 = canvas1;

            this.digithl = new Digit(XPOS + 0 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digithr = new Digit(XPOS + 1 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digitml = new Digit(5 + XPOS + 2 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digitmr = new Digit(5 + XPOS + 3 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digitsl = new Digit(10 + XPOS + 4 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digitsr = new Digit(10 + XPOS + 5 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);

            this.timemodel = timemodel;
            timemodel.RegisterObserver(this);
        }
Exemple #12
0
        public DigitalClock(ITimeSubject timemodel, Canvas canvas1, Brush brush1, int xpos, int ypos, int xsize, int ysize, int strokethickness, bool blankleading, bool fourdigit)
        {
            this.canvas1 = canvas1;
            this.blankleading = blankleading;
            this.fourdigit = fourdigit;

            this.digithl = new Digit(xpos + 0 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digithr = new Digit(xpos + 1 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digitml = new Digit(8 + xpos + 2 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digitmr = new Digit(8 + xpos + 3 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digitsl = new Digit(10 + xpos + 4 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digitsr = new Digit(10 + xpos + 5 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);

            this.timemodel = timemodel;
            timemodel.RegisterObserver(this);
        }
Exemple #13
0
        public DigitalOdometer(IODODoubleSubject odomodel, Canvas canvas1)
        {
            this.canvas1 = canvas1;

            this.digit1 = new Digit(XPOS + 0 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit2 = new Digit(XPOS + 1 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit3 = new Digit(XPOS + 2 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit4 = new Digit(XPOS + 3 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit5 = new Digit(XPOS + 4 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit6 = new Digit(XPOS + 5 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);
            this.digit7 = new Digit(8 + XPOS + 6 * (XSIZE + 8 * STROKETHICKNESS), YPOS, XSIZE, YSIZE, STROKETHICKNESS);

            this.odomodel = odomodel;
            odomodel.RegisterObserver(this);
            FUELModel fuelM = FUELModel.Instance;
            this.fuelM = fuelM;
        }
Exemple #14
0
        public DigitalOdometer(IODODoubleSubject odomodel, Canvas canvas1, Brush brush1, int xpos, int ypos, int xsize, int ysize, int strokethickness, bool blankleading)
        {
            this.canvas1 = canvas1;
            this.blankleading = blankleading;

            this.digit1 = new Digit(xpos + 0 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit2 = new Digit(xpos + 1 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit3 = new Digit(xpos + 2 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit4 = new Digit(xpos + 3 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit5 = new Digit(xpos + 4 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit6 = new Digit(xpos + 5 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);
            this.digit7 = new Digit(8 + xpos + 6 * (xsize + 8 * strokethickness), ypos, xsize, ysize, strokethickness, brush1);

            this.odomodel = odomodel;
            odomodel.RegisterObserver(this);
            FUELModel fuelM = FUELModel.Instance;
            this.fuelM = fuelM;
        }