コード例 #1
0
 public void AddItem(ExtMenuItem item, EventHandler handler)
 {
     item.Activated += handler;
     Append(item);
 }
コード例 #2
0
ファイル: Talk.cs プロジェクト: BackupTheBerlios/nyfolder-svn
        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));
            }
        }
コード例 #3
0
 public void AddItem(ExtMenuItem item)
 {
     Append(item);
 }