示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }