/// <summary>
        /// Notification that the combo is dropping down.
        /// </summary>
        private void ComboDroppingDown()
        {
            if (_fetchHandler != null)
            {
                using (new WaitCursor())
                {
                    // attempt to fetch items
                    object[] items = _fetchHandler.FetchItems(FindForm());

                    // if we got some items then merge them with the existing combo
                    // and then disable fetching for this session
                    if (items != null)
                    {
                        foreach (object item in items)
                        {
                            if (!Items.Contains(item))
                            {
                                Items.Add(item);
                            }
                        }

                        _fetchHandler = null;
                    }
                }
            }
        }
 public void Initialize(object[] items, object initialValue, IDelayedFetchHandler fetchHandler)
 {
     Items.Clear();
     Items.AddRange(items);
     SelectedItem  = initialValue;
     _fetchHandler = fetchHandler;
 }
 public void Initialize(object[] items, object initialValue, IDelayedFetchHandler fetchHandler)
 {
     Items.Clear();
     Items.AddRange(items);
     SelectedItem = initialValue;
     _fetchHandler = fetchHandler;
 }
        /// <summary>
        /// Notification that the combo is dropping down.
        /// </summary>
        private void ComboDroppingDown()
        {
            if (_fetchHandler != null)
            {
                using (new WaitCursor())
                {
                    // attempt to fetch items
                    object[] items = _fetchHandler.FetchItems(FindForm());

                    // if we got some items then merge them with the existing combo
                    // and then disable fetching for this session
                    if (items != null)
                    {
                        foreach (object item in items)
                        {
                            if (!Items.Contains(item))
                                Items.Add(item);
                        }

                        _fetchHandler = null;
                    }
                }
            }
        }
 public void Initialize(object initialValue, IDelayedFetchHandler fetchHandler)
 {
     Initialize(new object[] { initialValue }, initialValue, fetchHandler);
 }
 public void Initialize(object initialValue, IDelayedFetchHandler fetchHandler)
 {
     Initialize(new object[] { initialValue }, initialValue, fetchHandler);
 }