ACPAddIn.AutoCompleteForm.updateConfiguration C# (CSharp) Method

updateConfiguration() public method

public updateConfiguration ( ) : void
return void
        public void updateConfiguration()
        {
            // Without substring mode, the horizontal bar is show.
            if (!isSubStringMode)
            {
                listBox1.HorizontalScrollbar = true;
                this.Size = new Size(this.Width, 16 + Globals.ThisAddIn.EntriesInView * 42);
            }
            else
            {
                listBox1.HorizontalScrollbar = false;
                this.Size = new Size(this.Width, 16 + Globals.ThisAddIn.EntriesInView * (listBox1.ItemHeight+1) + 18);
                listBox1.IntegralHeight = false;
                listBox1.Size = new Size(330, Globals.ThisAddIn.EntriesInView * (listBox1.ItemHeight+1));
                previewPanel.Size = new Size(previewPanel.Width, listBox1.Height);
                statusLabel.Location = new Point(0, 16 + Globals.ThisAddIn.EntriesInView * (listBox1.ItemHeight+1) - 1);
                this.Size = new Size(330, statusLabel.Location.Y + statusLabel.Height);
            }
        }