ACPAddIn.AutoCompleteForm.populateForm C# (CSharp) Method

populateForm() public method

public populateForm ( List suggestions ) : void
suggestions List
return void
        public void populateForm(List<Suggestion> suggestions)
        {
            // To update the display settings based on the current configuration
            updateConfiguration();
            this.suggestions = suggestions;
            listBox1.SelectedIndex = -1;

            statusLabel.Text = "Press CTRL+[num] to select entry. Press Escape to hide.";

            int entriesInView = Globals.ThisAddIn.EntriesInView;

            numOfPage = Convert.ToInt32(Math.Ceiling(((Double)suggestions.Count / entriesInView)));
            pageIndex = 1;

            updateSuggestionPageDisplay();
            updateNextPreviousButton();

            previewPanel.Location = new Point(this.Location.X + this.Width - 4, this.Location.Y + 16);
            previewPanel.Hide();
        }