SIL.FieldWorks.XWorks.MorphologyEditor.InflAffixTemplateControl.OnInflTemplateRemoveSlot C# (CSharp) Method

OnInflTemplateRemoveSlot() public method

public OnInflTemplateRemoveSlot ( object cmd ) : bool
cmd object
return bool
		public bool OnInflTemplateRemoveSlot(object cmd)
		{
			CheckDisposed();

			IFdoReferenceSequence<IMoInflAffixSlot> seq;
			int index;
			GetAffixSequenceContainingSlot(m_obj as IMoInflAffixSlot, out seq, out index);
			using (UndoableUnitOfWorkHelper helper = new UndoableUnitOfWorkHelper(m_fdoCache.ActionHandlerAccessor,
				String.Format(MEStrings.ksUndoRemovingSlot, seq[index].Name.BestAnalysisVernacularAlternative.Text),
				String.Format(MEStrings.ksRedoRemovingSlot, seq[index].Name.BestAnalysisVernacularAlternative.Text)))
			{
				seq.RemoveAt(index);
				helper.RollBack = false;
			}
			return true;	//we handled this.
		}