public static void Run()
        {
            Console.WriteLine("Default:\n");
            EnumerateAll();
            Console.WriteLine("\n\nPaddingRight = 20:\n");
            ChalkerInstance.PaddingRight = 20;
            EnumerateAll();

            ChalkerInstance.ResetPaddingRight(); // reset
        }
Ejemplo n.º 2
0
        public static void Run()
        {
            ChalkerInstance.WriteMessage(ConsoleColor.DarkMagenta, "UserR00T", "Hello World!");
            var type = new MessageTypeData(ConsoleColor.DarkMagenta, "UserR00T");

            ChalkerInstance.WriteMessage(type, "Hello World!");
            ChalkerInstance.MessageTypes.Add(6, type);
            ChalkerInstance.ResetPaddingRight(); // Fixes padding issue; only works when added to the internal list.
            ChalkerInstance.WriteMessage(6, "Hello World!");

            ChalkerInstance.MessageTypes.Remove(6); // reset
            ChalkerInstance.ResetPaddingRight();    // reset
        }