public ICommandVM AddNewCommand(int index) { var newCmd = new TCommandVM(); newCmd.Command.Id = GetNextId(); m_Commands.Insert(index, newCmd); NewCommandCreated?.Invoke(newCmd); return(newCmd); }
public ICommandVM AddNewCommand(int index) { var newCmd = new TCommandVM(); var id = GetNextId(); newCmd.Command.Id = id; Commands.Insert(index, newCmd); AssignDefaultTitle(newCmd); NewCommandCreated?.Invoke(newCmd); return(newCmd); }