public override void Merge(UndoRedoAction action) { var oveEventAction = action as MoveEventAction; if (oveEventAction == null) { return; } m_trackDelta += oveEventAction.m_trackDelta; m_positionDelta += oveEventAction.m_positionDelta; }
public override void Merge(UndoRedoAction action) { SetSoundAction setSoundAction = (action as SetSoundAction); if (null == setSoundAction) { return; } m_nextInstrumentData = m_eventData.Instrument = setSoundAction.m_nextInstrumentData; }
public override bool CanMerge(UndoRedoAction action) { return(m_instrumentData.Name == m_newInstrumentName); }
private bool AreItemsTheSame(UndoRedoAction action) { return((action as SetSoundAction)?.m_eventData == m_eventData); }
public override bool CanMerge(UndoRedoAction action) { return(action is SetSoundAction && AreItemsTheSame(action));; }
private bool SameItems(UndoRedoAction action) { return(action is MoveEventAction && AreListsEqual((action as MoveEventAction).m_eventsList, m_eventsList)); }
public override bool CanMerge(UndoRedoAction action) { return(SameItems(action)); }
public override void Merge(UndoRedoAction action) { }
public override bool CanMerge(UndoRedoAction action) { return(m_trackData.TrackName == m_newTrackName); }