public Menu AddMenu(string name, string shortDesctiption, string description)
 {
     Menu menu = new Menu(name, shortDesctiption, description);
     Commands.Add(menu);
     menu.Parent = this;
     return menu;
 }
 public CommandLineInterface(string title)
 {
     Name = title;
     RootMenu = new Menu("Main menu", "JQuants main menu", "Main menu provides access to the Logging, Trading\n" +
                                                     "and other main system moudles");
     CurrentMenu = RootMenu;
     SystemMenu = new Menu("Commnad line interface system menu", "", "");
     SystemMenu.AddCommand("help", "List commands", "", PrintCommandsFull);
     SystemMenu.AddCommand("..", "One level up", "", OneLevelUp);
     SystemMenu.AddCommand("~", "Go to the main menu (root)", "", GotoRootMenu);
 }