public void AddItem(ExtMenuItem item, EventHandler handler) { item.Activated += handler; Append(item); }
private void OnInsertNetworkRightMenu(object sender, PopupMenu menu) { NetworkViewer networkViewer = sender as NetworkViewer; foreach (TreePath treePath in networkViewer.SelectedItems) { UserInfo userInfo = networkViewer.Store.GetUserInfo(treePath); ExtMenuItem menuItem = new ExtMenuItem("Talk", "TalkBubble", userInfo); menu.AddItem(menuItem, new EventHandler(OnTalkRightMenu)); } }
public void AddItem(ExtMenuItem item) { Append(item); }