Пример #1
0
 protected virtual void OnReportItemClick(ReportMenuEventArgs args)
 {
     if (ReportMenuClick != null)
     {
         ReportMenuClick(this, args);
     }
 }
Пример #2
0
        private void menu_MenuItemClick(object sender, MenuEventArgs e)
        {
            Menu menu = sender as Menu;

            if (menu != null)
            {
                ReportMenuEventArgs args = new ReportMenuEventArgs(e.Item.Text, e.Item.Value, _valueRedirctes[e.Item.Value]);
                OnReportItemClick(args);
                if (!args.Cancel)
                {
                    Redirect(args.Redircet);
                }
            }
        }