PopulateWsContextMenu() static private method

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
return 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);
        }