コード例 #1
0
        public override void Redraw()
        {
            Fill(' ');

            base.Redraw();

            Curses.attron(Curses.Attributes.Bold);
            Set(0, 0, '[');
            Curses.attroff(Curses.Attributes.Bold);

            for (int i = 0; i < Spaces; i++)
            {
                Set(i + 1, 0, '|');
            }

            Curses.attron(Curses.Attributes.Bold);
            Set(Width - 1, 0, ']');


            string text = string.Format("{0}RPM {1}%", RPM, Math.Floor(Percentage * 100));

            Draw(text, Width - text.Length - 1, 0);
            Curses.attroff(Curses.Attributes.Bold);
        }