private void ExecuteAction(MyToolbarItem action) { m_actionToolbar.SetItemAtIndex(0, action); m_actionToolbar.UpdateItem(0); m_actionToolbar.ActivateItemAtSlot(0); m_actionToolbar.Clear(); }