Beispiel #1
0
        /// <summary>
        /// Get a reference to the form proxy singleton.
        /// </summary>
        /// <returns>A reference to the form proxy.</returns>
        public static LookupFormProxy GetInstance()
        {
            if (_singleton == null)
            {
                _singleton = new LookupFormProxy();
            }

            return(_singleton);
        }
Beispiel #2
0
        /// <summary>
        /// Create the pop-up window.
        /// </summary>
        /// <param name="p">The location of the pop-up window.</param>
        /// <param name="list">The code assist information to be presented.</param>
        public LookupForm(Point p, LookupList list)
        {
            _themeFlags = ApplicationManager.GetInstance().
                          ClientProfile.ThemeFlags;

            InitializeComponent();

            _listView.MultiSelect      = false;
            _listView.Columns[0].Width = -1;

            this.StartPosition = FormStartPosition.Manual;
            this.Location      = p;

            PopulateLookupList(list);

            // Remember items start with " " (it looks better)
            _incrementalSearchText = " " + list.LookAheadText;

            // Allow client apps to modify the form.
            LookupFormProxy.GetInstance().UpdateFormControls(Controls);
        }