public bool OnInflTemplateAddInflAffixMsa(object cmd)
{
CheckDisposed();
using (var chooser = MakeChooserWithExtantMsas(m_slot, cmd as XCore.Command))
{
chooser.ShowDialog();
if (chooser.DialogResult == DialogResult.OK)
{
if (chooser.ChosenObjects != null && chooser.ChosenObjects.Count() > 0)
{
UndoableUnitOfWorkHelper.Do(MEStrings.ksUndoAddAffixes, MEStrings.ksRedoAddAffixes,
Cache.ActionHandlerAccessor,
() =>
{
foreach (var obj in chooser.ChosenObjects)
{
AddInflAffixMsaToSlot(obj, m_slot);
}
});
}
}
}
return true; //we handled this.
}