Пример #1
0
    //constructors
        /// <summary>
        /// Creates a new console dot object with the specified parameters
        /// </summary>
        public ConsoleDots(int interval, ConsoleColor? fore = null, ConsoleColor? back = null, char dot = '.', CT start = null, CT finish = null, bool autostart = true) {
            this.dot = dot;

            dotColor = new ConsoleColors(fore, back);

            this.start  = start;
            this.finish = finish;


            timer = new Timer(interval);
            timer.Elapsed += Dot;

            if (autostart) {
                Start();
            }
        }
Пример #2
0
 /// <summary>
 /// writes a CT (colored text) object to the console followed by a line terminator
 /// </summary>
 public static void WriteLine(CT ct)                 { WriteLine(ct.fore, ct.back, ct.text); }