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