상속: System.EventArgs
예제 #1
0
        private void PerformTextChanged()
        {
            if (TextBox.Text == "")
            {
                ShowForm(false);
            }
            else
            {
                var  results             = new AutoCompleteEventArgs();
                bool suppressTextChanged = _suppressTextChanged;

                _suppressTextChanged = true;

                OnGetResults(results);

                _suppressTextChanged = suppressTextChanged;

                if (results.Items == null || results.Items.Length == 0)
                {
                    ShowForm(false);
                }
                else
                {
                    ShowForm(true);

                    _form.SetResults(results.Items);
                }
            }
        }
예제 #2
0
 protected virtual void OnGetResults(AutoCompleteEventArgs e)
 {
     if (GetResults != null)
     {
         GetResults(this, e);
     }
 }
예제 #3
0
        private void PerformTextChanged()
        {
            if (TextBox.Text == "")
            {
                ShowForm(false);
            }
            else
            {
                var results = new AutoCompleteEventArgs();
                bool suppressTextChanged = _suppressTextChanged;

                _suppressTextChanged = true;

                OnGetResults(results);

                _suppressTextChanged = suppressTextChanged;

                if (results.Items == null || results.Items.Length == 0)
                {
                    ShowForm(false);
                }
                else
                {
                    ShowForm(true);

                    _form.SetResults(results.Items);
                }
            }
        }
예제 #4
0
 protected virtual void OnGetResults(AutoCompleteEventArgs e)
 {
     if (GetResults != null)
     {
         GetResults(this, e);
     }
 }