SIL.FieldWorks.FdoUi.ReferenceSequenceUi.OnMoveTargetDownInSequence C# (CSharp) Method

OnMoveTargetDownInSequence() public method

public OnMoveTargetDownInSequence ( object commandObject ) : void
commandObject object
return void
		public void OnMoveTargetDownInSequence(object commandObject)
		{
			CheckDisposed();

			if (m_obj == null || m_iCurrent < 0)
				return;
			// Move currently selected object to the previous location
			int iNew = m_iCurrent - 1;
			Debug.Assert(iNew >= 0);
			UndoableUnitOfWorkHelper.DoUsingNewOrCurrentUOW("Undo move up/left/earlier in sequence",
				"Redo move up/left/earlier in sequence",
				m_cache.ActionHandlerAccessor,
				() =>
					{
						m_fdoRS.RemoveAt(m_iCurrent);
						m_fdoRS.Insert(iNew, m_hvoTarget);
					});
		}
	}