PopulateWsContextMenu() статический приватный Метод

static private PopulateWsContextMenu ( ContextMenuStrip cmnuAddWs, IEnumerable wssToAdd, ListBox listToAddTo, EventHandler clickHandlerExistingWs, EventHandler clickHandlerNewWs, EventHandler clickHandlerNewWsFromSelected, IWritingSystem selectedWs ) : void
cmnuAddWs System.Windows.Forms.ContextMenuStrip
wssToAdd IEnumerable
listToAddTo System.Windows.Forms.ListBox
clickHandlerExistingWs EventHandler
clickHandlerNewWs EventHandler
clickHandlerNewWsFromSelected EventHandler
selectedWs IWritingSystem
Результат void
Пример #1
0
        private ContextMenuStrip PopulateAddWsContextMenu()
        {
            var cms = new ContextMenuStrip();

            FwProjPropertiesDlg.PopulateWsContextMenu(cms, m_wsManager.AllDistinctWritingSystems,
                                                      m_listBoxRelatedWSs, btnAddWsItemClicked, null, btnNewWsItemClicked, (CoreWritingSystemDefinition)m_listBoxRelatedWSs.Items[0]);
            return(cms);
        }
        private ContextMenuStrip PopulateAddWsContextMenu()
        {
            var cms = new ContextMenuStrip();

            FwProjPropertiesDlg.PopulateWsContextMenu(cms, WritingSystemUtils.GetAllDistinctWritingSystems(m_wsManager),
                                                      m_listBoxRelatedWSs, btnAddWsItemClicked, null, btnNewWsItemClicked, (IWritingSystem)m_listBoxRelatedWSs.Items[0]);
            return(cms);
        }