void CustomSearchItem_Click(object sender, SmartItemClickEventArgs e) { Xceed.SmartUI.SmartItem item = sender as Xceed.SmartUI.SmartItem; CustomSearchInfo info = item.Tag as CustomSearchInfo; m_sm.FirstResult = 0; m_sm.LoadData(SearchExpression.Parse(info.SearchExpression), null); }
private void ToolStripMenuItem_Click(object sender, EventArgs e) { try { ToolStripMenuItem item = sender as ToolStripMenuItem; CustomSearchInfo info = item.Tag as CustomSearchInfo; m_sm.LoadData(SearchExpression.Parse(info.SearchExpression), null); if (ToolStripItemClicked != null) { ToolStripItemClicked(sender, e); } } catch (Exception ex) { ExceptionProcess.ProcessWithNotify(ex); } }