Exemple #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);
     }
 }
		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;
			}
		}