示例#1
0
	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();
    }
示例#2
0
 public virtual void DrawPolygon(PolygonG poly, Pen aPen, Brush aBrush)
 {
     DrawPolygon(poly.Points, aPen, aBrush);
 }
示例#3
0
    public virtual void FillPolygon(PolygonG poly, Brush aBrush)
    {
        SaveState();

        // Select the current pen and brush
        GDI32.Polygon(HDC, poly.Points, poly.Points.Length);

        RestoreState();
    }
示例#4
0
    public virtual void FramePolygon(PolygonG poly, Pen aPen)
    {
        SaveState();

        Polygon(poly.Points);

        RestoreState();
    }