public void AddCommand(String i_Name, String i_Help) { OneSystemCommand NewCommand = new OneSystemCommand { Opcode = i_Name, Help = i_Help }; ALLCommandsList.Add(NewCommand); }
public List <OneSystemCommand> DeSerializeStringListToCommandsList(List <String> i_InputList) { List <OneSystemCommand> ret = new List <OneSystemCommand>(); if (i_InputList != null) { foreach (String cmd in i_InputList) { string[] Output = cmd.Split(new string[] { "|||" }, StringSplitOptions.None); OneSystemCommand NewCmd = new OneSystemCommand { Opcode = Output[1], Help = Output[2] }; ret.Add(NewCmd); } } return(ret); }
public void AddCommand(OneSystemCommand i_NewCommand) { ALLCommandsList.Add(i_NewCommand); }