/// <summary> /// Initializes a new instance of the <see cref="CompositionCommands"/> class. /// </summary> /// <param name="datasetLock">The object used to lock the dataset for reading or writing.</param> /// <param name="groups">The object that stores all the selected groups and their connections.</param> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="datasetLock"/> is <see langword="null" />. /// </exception> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="groups"/> is <see langword="null" />. /// </exception> public CompositionCommands( ITrackDatasetLocks datasetLock, IStoreGroupsAndConnections groups) { { Lokad.Enforce.Argument(() => datasetLock); Lokad.Enforce.Argument(() => groups); } m_DatasetLock = datasetLock; m_CompositionLayer = groups; }