private void onDeleteClicked(object sender, EventArgs e) { if (m_LastSearch != null && m_PreviousState == UiSearch2.State.Bookmarks && m_UiSearch != null) { Bookmarks.Delete(m_LastSearch); m_UiSearch.changeState(UiSearch2.State.Bookmarks); m_UiSearch.UiBookmarks.refreshCards(); } }