/// <summary> /// 受保护的方法,调用Query事件 /// </summary> /// <param name="e"></param> protected void OnQuery(QueryEventArgs e) { if (this.Query != null) { this.Query(this, e); } }
/// <summary> /// 确定按钮单击事件 /// 返回输入的条件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnOK_Click(object sender, System.EventArgs e) { SaveQueryCondition(); QueryEventArgs arg = new QueryEventArgs(); arg.QueryCondition = GetQueryCondition(); OnQuery(arg); }
private void ucquery1_Query(Object sender, QueryEventArgs e) { string strWhere = GetWhereString(e.QueryCondition); this.Query(strWhere); }