public DigitalClockDisplay(bool is24Hour, bool suppressExtra) { f24Hour = is24Hour; fSuppress = suppressExtra; fSegmentedNumber = new SegmentedNumber(); ptColon = new Point[2][]; ptColon[0] = new Point[] { new Point(2, 21), new Point(6, 17), new Point(10, 21), new Point(6, 25) }; ptColon[1] = new Point[] { new Point(2, 51), new Point(6, 47), new Point(10, 51), new Point(6, 55) }; fcolonPolies = new PolygonG[2]; fcolonPolies[0] = new PolygonG(ptColon[0]); fcolonPolies[1] = new PolygonG(ptColon[1]); fLastTime = new SYSTEMTIME(); fThisTime = new SYSTEMTIME(); }
public virtual void DrawPolygon(PolygonG poly, Pen aPen, Brush aBrush) { DrawPolygon(poly.Points, aPen, aBrush); }
public virtual void FillPolygon(PolygonG poly, Brush aBrush) { SaveState(); // Select the current pen and brush GDI32.Polygon(HDC, poly.Points, poly.Points.Length); RestoreState(); }
public virtual void FramePolygon(PolygonG poly, Pen aPen) { SaveState(); Polygon(poly.Points); RestoreState(); }