Esempio n. 1
0
        public BinaryGrid(int width, int height)
        {
            Point hPos = new Point(width / 2 - 4 * BULB_DIAMETER, height / 2 - 2 * BULB_DIAMETER);
            Point mPos = new Point(width / 2, height / 2 - 2 * BULB_DIAMETER);
            Point sPos = new Point(width / 2 + 4 * BULB_DIAMETER, height / 2 - 2 * BULB_DIAMETER);

            hours = new BinaryRange(RangeType.Hour, hPos);
            minutes = new BinaryRange(RangeType.Minute, mPos);
            seconds = new BinaryRange(RangeType.Second, sPos);
        }
Esempio n. 2
0
        public BinaryGrid(int width, int height)
        {
            Point hPos = new Point(width / 2 - 4 * BULB_DIAMETER, height / 2 - 2 * BULB_DIAMETER);
            Point mPos = new Point(width / 2, height / 2 - 2 * BULB_DIAMETER);
            Point sPos = new Point(width / 2 + 4 * BULB_DIAMETER, height / 2 - 2 * BULB_DIAMETER);

            hours   = new BinaryRange(RangeType.Hour, hPos);
            minutes = new BinaryRange(RangeType.Minute, mPos);
            seconds = new BinaryRange(RangeType.Second, sPos);
        }
Esempio n. 3
0
        public BinaryClock(int width, int height, PictureBox ozone)
        {
            BinaryRange.PopulateCouples();
            ozone.Parent.Invoke(new Action(() =>
            {
                DesktopDrawer.CreateGraphics(new Bitmap(ozone.Width, ozone.Height));
            }
                                           ));

            grid = new BinaryGrid(width, height);
        }