Exemplo n.º 1
0
 private void ConfigListCommand()
 {
     config = new Catalog("Configurate terminal", enable.path);
     config.AddCommand("ColorRed", () => Console.ForegroundColor = ConsoleColor.Red);
 }
Exemplo n.º 2
0
 private void EnableListCommand()
 {
     enable = new Catalog("Enable", users.path);
     enable.AddCommand("Configurate terminal", () => config.Operation());
 }
Exemplo n.º 3
0
 private void ConfigListCommand()
 {
     config = new Catalog("Config", enable.path);
     config.AddCommand("colorgreen", () => Console.ForegroundColor = ConsoleColor.Green);
 }
Exemplo n.º 4
0
 private void UserListCommand()
 {
     users = new Catalog("User");
     users.AddCommand("Hi", () => Console.WriteLine("Hello)"));
     users.AddCommand("Enable", () => enable.Operation());
 }
Exemplo n.º 5
0
 private void UserListCommand()
 {
     users = new Catalog("User");
     users.AddCommand("time", () => Console.WriteLine(DateTime.Now));
     users.AddCommand("enable", () => enable.Operation());
 }