Пример #1
0
        private void ShowToolWindow()
        {
            if (KeywordList != null)
            {
                lockTextChanged = true;
                Rectangle rect = this.Bounds;
                rect = Parent.RectangleToScreen(rect);

                bool applyFilter = this.SelectionLength == 0;

                String keywordText = this.Text;

                String s = FormKeywordList.ShowToolWindow(this.FindForm(), KeywordList, keywordText, applyFilter, rect);
                if (s != null)
                {
                    this.Text = s;
                    this.SelectAll();
                }
                else
                {
                    this.Text = keywordText;
                    this.SelectAll();
                }

                lockTextChanged = false;
            }
        }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     //FormKeywordList dlg = new FormKeywordList();
     //dlg.ShowDialog();
     FormKeywordList.ShowToolWindow(this, null, "", false, Bounds);
 }