void OnCellTouchUpInside(int cellIndex)
{
var touchedEntry = m_entries[cellIndex];
bool isTouchingToClose = touchedEntry.IsOpen;
var entriesToClose = m_entries.Where(e => e.IsOpen);
foreach (var entry in entriesToClose)
{
CloseAccordion(entry);
entry.IsOpen = false;
}
if (!isTouchingToClose)
{
OpenAccordion(touchedEntry);
touchedEntry.IsOpen = true;
}
}