/// <summary>
 /// Filder the results
 /// </summary>
 /// <param name="item"></param>
 /// <returns></returns>
 private bool FindAllItems( GListBox.GListBoxItem item )
 {
     if (matchLen == 0) return true;
     int score = PluginCore.Controls.CompletionList.SmartMatch(item.Text, matchToken, matchLen);
     if (score > 0 && score < 6)
     {
         if (score < lastScore)
         {
             lastScore = score;
             topIndex = resultCount;
         }
         resultCount++;
         return true;
     }
     else return false;
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.button1 = new System.Windows.Forms.Button();
     this.button2 = new System.Windows.Forms.Button();
     this.listView1 = new ASClassWizard.Wizards.GListBox();
     this.classBrowserBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.textBox1 = new System.Windows.Forms.TextBox();
     ((System.ComponentModel.ISupportInitialize)(this.classBrowserBindingSource)).BeginInit();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Location = new System.Drawing.Point(219, 270);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 1;
     this.button1.Text = "&Select None";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // button2
     //
     this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.button2.Location = new System.Drawing.Point(138, 270);
     this.button2.Name = "button2";
     this.button2.Size = new System.Drawing.Size(75, 23);
     this.button2.TabIndex = 2;
     this.button2.Text = "&Ok";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // listView1
     //
     this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.listView1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.listView1.FormattingEnabled = true;
     this.listView1.ImageList = null;
     this.listView1.Location = new System.Drawing.Point(12, 38);
     this.listView1.Name = "listView1";
     this.listView1.Size = new System.Drawing.Size(282, 225);
     this.listView1.TabIndex = 3;
     this.listView1.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
     //
     // textBox1
     //
     this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.textBox1.Location = new System.Drawing.Point(12, 12);
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(282, 20);
     this.textBox1.TextChanged += new System.EventHandler(textBox1_TextChanged);
     this.textBox1.TabIndex = 4;
     //
     // ClassBrowser
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(307, 305);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.listView1);
     this.Controls.Add(this.button2);
     this.Controls.Add(this.button1);
     this.Name = "ClassBrowser";
     this.Text = "Open Type";
     this.Load += new System.EventHandler(this.ClassBrowser_Load);
     ((System.ComponentModel.ISupportInitialize)(this.classBrowserBindingSource)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.cancelButton = new System.Windows.Forms.Button();
     this.okButton = new System.Windows.Forms.Button();
     this.itemList = new ASClassWizard.Wizards.GListBox();
     this.classBrowserBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.filterBox = new System.Windows.Forms.TextBox();
     ((System.ComponentModel.ISupportInitialize)(this.classBrowserBindingSource)).BeginInit();
     this.SuspendLayout();
     //
     // cancelButton
     //
     this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Location = new System.Drawing.Point(219, 270);
     this.cancelButton.Name = "cancelButton";
     this.cancelButton.Size = new System.Drawing.Size(75, 23);
     this.cancelButton.TabIndex = 3;
     this.cancelButton.Text = "&Select None";
     this.cancelButton.UseVisualStyleBackColor = true;
     this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
     //
     // okButton
     //
     this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.okButton.Location = new System.Drawing.Point(137, 270);
     this.okButton.Name = "okButton";
     this.okButton.Size = new System.Drawing.Size(75, 23);
     this.okButton.TabIndex = 2;
     this.okButton.Text = "&Ok";
     this.okButton.UseVisualStyleBackColor = true;
     this.okButton.Click += new System.EventHandler(this.okButton_Click);
     //
     // itemList
     //
     this.itemList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
     this.itemList.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.itemList.FormattingEnabled = true;
     this.itemList.ImageList = null;
     this.itemList.Location = new System.Drawing.Point(12, 40);
     this.itemList.Name = "itemList";
     this.itemList.Size = new System.Drawing.Size(282, 225);
     this.itemList.TabIndex = 1;
     this.itemList.DoubleClick += new System.EventHandler(this.itemList_DoubleClick);
     //
     // filterBox
     //
     this.filterBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
     this.filterBox.Location = new System.Drawing.Point(12, 12);
     this.filterBox.Name = "filterBox";
     this.filterBox.Size = new System.Drawing.Size(282, 20);
     this.filterBox.TabIndex = 0;
     this.filterBox.TextChanged += new System.EventHandler(this.filterBox_TextChanged);
     this.filterBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.filterBox_KeyDown);
     //
     // ClassBrowser
     //
     this.AcceptButton = this.okButton;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton = this.cancelButton;
     this.ClientSize = new System.Drawing.Size(306, 303);
     this.Controls.Add(this.filterBox);
     this.Controls.Add(this.itemList);
     this.Controls.Add(this.okButton);
     this.Controls.Add(this.cancelButton);
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
     this.Name = "ClassBrowser";
     this.Text = "Open Type";
     this.Load += new System.EventHandler(this.ClassBrowser_Load);
     ((System.ComponentModel.ISupportInitialize)(this.classBrowserBindingSource)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }