public BarUsingApplication(Canvas canvas)
        {
            circleBar = new CircleBar(canvas, 0.09, Color.FromArgb(255, 0, 100, 0), 4, 0, 15, 50);
            valueBarUsingApplication = new MyLabel(canvas, "-", 74, 40, 22,
                                                   canvas.Width / 2 - 33, canvas.Height / 2 - 5, Color.FromArgb(255, 0, 100, 0), Color.FromArgb(0, 0, 0, 0));

            MyLabel title = new MyLabel(canvas, "Aktywna aplikacja", 140, 30, 14, 0, 0, Color.FromArgb(255, 47, 79, 79), Color.FromArgb(0, 0, 0, 0));

            dailyUseOfApplication_db = new DailyUseOfApplication_db();
        }
Exemplo n.º 2
0
        public void CreateAnimatedClock(Canvas canvas)
        {
            this.canvas = canvas;
            CreateClockFace();

            MyCircle myCircle = new MyCircle(canvas, 110, 2, Color.FromArgb(255, 128, 128, 128), (this.canvas.Width / 2) - 53,
                                             (this.canvas.Height / 2) - 43, 0.5);

            circleBar = new CircleBar(this.canvas, 0.08, Color.FromArgb(255, 255, 99, 71), 4, 0, 10, 55, false);
            CreateHandOfClock();
            timerAnimation.Start();
            UpdateLookAnimatedClock();
        }
        public BiggestResultsOfDay(Canvas canvas)
        {
            this.canvas = canvas;
            labels      = new MyLabel[4];
            labelLegend = new MyLabel[4];
            nameColor   = new Color[4];
            MyLabel title = new MyLabel(canvas, "Największe użycie", 140, 30, 14, 0, 0, Color.FromArgb(255, 47, 79, 79), Color.FromArgb(0, 0, 0, 0));

            circleBar = new CircleBar(canvas, 0.04, Color.FromArgb(255, 255, 255, 255), 10, -8, -8, 40, false);

            nameColor[0] = Color.FromArgb(255, 46, 139, 87);
            nameColor[1] = Color.FromArgb(255, 255, 69, 0);
            nameColor[2] = Color.FromArgb(255, 255, 165, 0);
            nameColor[3] = Color.FromArgb(255, 75, 0, 130);

            CreateSegmentRecordDay(2, 131, 0);
            CreateSegmentRecordDay(102, 131, 1);
            CreateSegmentRecordDay(2, 146, 2);
            CreateSegmentRecordDay(102, 146, 3);

            dailyUseOfApplication_db = new DailyUseOfApplication_db();
        }