예제 #1
0
        //This is the Find button

        private void findButton_Click(object sender, EventArgs e)
        {
            if (!IsLockedMode)
            {
                if (!String.IsNullOrEmpty(queryBox.Text))
                {
                    this.QueryString = queryBox.Text;
                    RunQuery?.Invoke(this, EventArgs.Empty);
                }
            }
            else
            {
                this.QueryString = CreateQueryString();
                //MessageBox.Show(QueryString);
                RunQuery?.Invoke(this, EventArgs.Empty);
            }
        }
예제 #2
0
 /// <summary>
 /// Invokes the RunQuery event if it has subscribers
 /// </summary>
 private void OnRunClicked(object sender, EventArgs e)
 {
     RunQuery?.Invoke(this, EventArgs.Empty);
 }