/// <summary> /// 取消命令 /// </summary> public void CancleCommand(Command cmd) { commands.Remove(cmd); }
/// <summary> /// 添加命令 /// </summary> public void AddCommand(Command cmd) { commands.Add(cmd); }