Ejemplo n.º 1
0
 private void QueryStrTextBox_TextChanged(object sender, EventArgs e)
 {
     string queryString = this.QueryStrTextBox.Text;
     GridQuery gridQuery = new GridQuery(this.OldXmlGrid);
     gridQuery.QueryStr = queryString;
     gridQuery.QueryType = this.BlurQueryRadioButton.Checked ? QueryType.Blur : QueryType.Complete;
     if (this.QueryTypeComBox.SelectedIndex == 0)
     {
         gridQuery.Query();
     }
     else if (this.QueryTypeComBox.SelectedIndex == 1
         || this.QueryTypeComBox.SelectedIndex == 2)
     {
         gridQuery.Query2();
     }
 }
Ejemplo n.º 2
0
 private void WsdlQueryButton_Click(object sender, EventArgs e)
 {
     DataTable dt = (DataTable)this.WsdlGrid.DataSource;
     if (dt == null) return;
     string queryString = this.WsdlQueryTextBox.Text;
     GridQuery gridQuery = new GridQuery(this.WsdlGrid);
     gridQuery.QueryStr = queryString;
     gridQuery.QueryType = QueryType.Blur;
     gridQuery.Query();
 }
Ejemplo n.º 3
0
 private void QueryButton_Click(object sender, EventArgs e)
 {
     if (this.OldXmlGrid.DataSource == null) return;
     string queryString = this.QueryStrTextBox.Text;
     GridQuery gridQuery = new GridQuery(this.OldXmlGrid);
     gridQuery.QueryStr = queryString;
     gridQuery.QueryType = this.BlurQueryRadioButton.Checked ? QueryType.Blur : QueryType.Complete;
     if (this.QueryTypeComBox.SelectedIndex == 0)
     {
         gridQuery.Query();
     }
     else if (this.QueryTypeComBox.SelectedIndex == 1
         || this.QueryTypeComBox.SelectedIndex == 2)
     {
         gridQuery.Query2();
     }
 }