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; }
public void RemoveCommand(Command mCommand) { Debug.Assert(Commands.Count > 0); Debug.Assert(Commands.Contains(mCommand)); Commands.Remove(mCommand); }