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); }
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); }