예제 #1
0
        public void AddCommand(Command mCommand, string mLabel = null)
        {
            mCommand.Timeline = this;
            mCommand.Initialize();

            if (mLabel != null) _commandsLabeled[mLabel] = mCommand;

            Commands.Add(mCommand);
            if (CommandCurrent == null) CommandCurrent = mCommand;
        }
예제 #2
0
        public void RemoveCommand(Command mCommand)
        {
            Debug.Assert(Commands.Count > 0);
            Debug.Assert(Commands.Contains(mCommand));

            Commands.Remove(mCommand);
        }