コード例 #1
0
        public void SetMenu(UserMenu menu)
        {
            internal_menu = menu;

            for (int i = 0; i < internal_menu.Count; i++)
            {
                listViewInternal.Items.Add(new InternalItem(internal_menu[i]));
            }
        }
コード例 #2
0
        private void init_menu()
        {
            //drive_menu = new DriveMenuItems(this,menuItemDrives);
            //drive_menu.DriveClick += new DriveClickEventHandler(drive_menu_DriveClick);

            browse_menu = new BrowseMenu(menuItemBrowse);
            browse_menu.BrowseMenuClick += new BrowseMenuClickEventHandler(browse_menu_BrowseMenuClick);

            user_menu = new UserMenu(menuItemUserCommands);
            user_menu.QueryCurrentPanel += new QueryPanelInfoEventHandler(user_menu_QueryCurrentPanel);
            user_menu.QueryOtherPanel   += new QueryPanelInfoEventHandler(user_menu_QueryOtherPanel);
        }