Exemplo n.º 1
0
 private void InitDictionary()
 {
     CommandSet.Add(CommandPrintHelp.GetInstance().GetCommand(), CommandPrintHelp.GetInstance());
     CommandSet.Add(CommandGenerateSample.GetInstance().GetCommand(), CommandGenerateSample.GetInstance());
     CommandSet.Add(CommandCheckJson.GetInstance().GetCommand(), CommandCheckJson.GetInstance());
     CommandSet.Add(CommandSolveDesk.GetInstance().GetCommand(), CommandSolveDesk.GetInstance());
     CommandSet.Add(CommandQuit.GetInstance().GetCommand(), CommandQuit.GetInstance());
 }
Exemplo n.º 2
0
 public static CommandPrintHelp GetInstance()
 {
     return(_instance ?? (_instance = new CommandPrintHelp()));
 }