コード例 #1
0
        /// <summary>
        /// Renders the entire progress bar
        /// </summary>
        public void Render()
        {
            if (Console.CursorLeft > 0)
            {
                Console.WriteLine();
            }

            topLeft      = Console.TakeSnapshot();
            messageStart = topLeft.CreateOffsetSnapshot(2, 1);
            wiper        = new ConsoleWiper(topLeft);
            wiper.Bottom = wiper.Top + 2;
            wiper.Wipe();
            DrawBorder();
            Update();
        }
コード例 #2
0
 public ConsoleSnapshot CreateSnapshot()
 {
     var snapshot = new ConsoleSnapshot(Left, Top, Console);
     return snapshot;
 }
コード例 #3
0
        /// <summary>
        /// Renders the entire progress bar
        /// </summary>
        public void Render()
        {
            if(Console.CursorLeft > 0)
            {
                Console.WriteLine();
            }

            topLeft = Console.TakeSnapshot();
            messageStart = topLeft.CreateOffsetSnapshot(2, 1);
            wiper = new ConsoleWiper(topLeft);
            wiper.Bottom = wiper.Top + 2;
            wiper.Wipe();
            DrawBorder();
            Update();
        }
コード例 #4
0
        /// <summary>
        /// Creates a snapshot of the cursor position
        /// </summary>
        /// <returns>a snapshot of the cursor positon</returns>
        public ConsoleSnapshot CreateSnapshot()
        {
            var snapshot = new ConsoleSnapshot(X, Y, Console);

            return(snapshot);
        }
コード例 #5
0
        public ConsoleSnapshot CreateSnapshot()
        {
            var snapshot = new ConsoleSnapshot(Left, Top, Console);

            return(snapshot);
        }