public void InsertCommand(int index, String type, List<String> sargs, List<int> iargs, GUI gui = null) { Command newcom = new Command(type, sargs, iargs, gui); Commands.Insert(index, newcom); }
public void AddCommand(String type, List<String> sargs, List<int> iargs, GUI gui = null) { Command newcom = new Command(type, sargs, iargs, gui); Commands.Add(newcom); }