private void ExecuteAction(MyToolbarItem action) { m_actionToolbar.SetItemAtIndex(0, action); m_actionToolbar.UpdateItem(0); m_actionToolbar.ActivateItemAtSlot(0); m_actionToolbar.Clear(); }
public void SetToToolbar(MyToolbar toolbar, int index) { var item = m_cachedItem; if (item != null) { toolbar.SetItemAtIndex(index, item); } }