Ct.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Azylee.Core.WindowsUtils.ConsoleUtils
  6. {
  7. public static class Ct
  8. {
  9. public static void P(string value)
  10. {
  11. Console.Write(value);
  12. }
  13. public static void P(string value, ConsoleColor color)
  14. {
  15. Console.ForegroundColor = color;
  16. Console.Write(value);
  17. }
  18. public static void P(string value, ConsoleColor color, ConsoleColor bgcolor)
  19. {
  20. Console.ForegroundColor = color;
  21. Console.BackgroundColor = bgcolor;
  22. Console.Write(value);
  23. }
  24. public static void Pl(string value)
  25. {
  26. Console.WriteLine(value);
  27. }
  28. public static void Pl(string value, ConsoleColor color)
  29. {
  30. Console.ForegroundColor = color;
  31. Console.WriteLine(value);
  32. }
  33. public static void Pl(string value, ConsoleColor color, ConsoleColor bgcolor)
  34. {
  35. Console.ForegroundColor = color;
  36. Console.BackgroundColor = bgcolor;
  37. Console.WriteLine(value);
  38. }
  39. }
  40. }