Esempio n. 1
0
        public ICommandVM AddNewCommand(int index)
        {
            var newCmd = new TCommandVM();

            newCmd.Command.Id = GetNextId();

            m_Commands.Insert(index, newCmd);

            NewCommandCreated?.Invoke(newCmd);

            return(newCmd);
        }
Esempio n. 2
0
        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);
        }