WsComboItemsInternal() static private method

This is used to create an object collection with the appropriate writing system choices to be used in wsCombo. The reason it is cached is because list generation will require looping through each kind of combo box several times. This version is visible to InterlinDocRootSiteBase for its context menu.
static private WsComboItemsInternal ( SIL.FieldWorks.FDO.FdoCache cache, ComboBox owner, ComboBox.ObjectCollection>.Dictionary cachedBoxes, ColumnConfigureDialog comboContent ) : ComboBox.ObjectCollection
cache SIL.FieldWorks.FDO.FdoCache
owner System.Windows.Forms.ComboBox
cachedBoxes ComboBox.ObjectCollection>.Dictionary
comboContent ColumnConfigureDialog
return System.Windows.Forms.ComboBox.ObjectCollection
Ejemplo n.º 1
0
 private IEnumerable <WsComboItem> GetWsComboItems(InterlinLineSpec curSpec)
 {
     using (var dummyCombobox = new ComboBox())
     {
         var dummyCachedBoxes = new Dictionary <ColumnConfigureDialog.WsComboContent, ComboBox.ObjectCollection>();
         var comboObjects     = ConfigureInterlinDialog.WsComboItemsInternal(
             Cache, dummyCombobox, dummyCachedBoxes, curSpec.ComboContent);
         var choices = new WsComboItem[comboObjects.Count];
         comboObjects.CopyTo(choices, 0);
         return(choices);
     }
 }