Exemple #1
0
        public virtual void HandleCommand(ReportCommand command, object[] args, ref bool handled)
        {
            if (!CanHandleCommand(command))
            {
                return;
            }



            switch (command)
            {
            case ReportCommand.AddNewDataSource:
                DataWizard dataWizard = new DataWizard(panel.Report);
                dataWizard.Run();
                break;

            default:
                CustomWizard customWizard = new CustomWizard(panel.Report);
                customWizard.Run();

                break;
            }

            handled = true;
        }
Exemple #2
0
        public void HandleCommand(ReportCommand command, object[] args)
        {
            if (!CanHandleCommand(command))
            {
                return;
            }

            switch (command)
            {
            case ReportCommand.AddNewDataSource:
                DataWizard dataWizard = new DataWizard(panel.Report);
                dataWizard.Run();
                break;

            default:
                //CustomWizard customWizard = new CustomWizard(panel.Report);
                //customWizard.Run();
                panel.ExecCommand(ReportCommand.NewReportWizard);
                break;
            }
        }