Exemple #1
0
 private void CustomizeWizard(ChartWizard wizard)
 {
     //set title
     wizard.Caption = "My company title";
     //set icon
     wizard.Icon = GetCustomLogo();
 }
Exemple #2
0
        protected override ChartWizard CreateWizard(XRChart chart, IDesignerHost designerHost)
        {
            ChartWizard wizard = base.CreateWizard(chart, designerHost);

            CustomizeWizard(wizard);
            return(wizard);
        }
        public ChartControlForm()
        {
            InitializeComponent();
            // Create a ChartWizard for a new ChartControl
            ChartWizard wiz = new ChartWizard(chartControl1);

            // Invoke the chart's wizard.
            wiz.ShowDialog();
        }
 public ChartWizardAdapter(ChartService chartservice)
 {
     _chartservice = chartservice;
     _chartwizard  = new ChartWizard();
     _chartwizard.SchemaChanging       += new SchemaChangingHandler(_chartwizard_SchemaChanging);
     _chartwizard.SchemaCompleted      += new SchemaCompletedHander(_chartwizard_SchemaCompleted);
     _chartwizard.SchemaCaptionChanged += new SchemaCaptionChangedHandler(_chartwizard_SchemaCaptionChanged);
     _chartwizard.AddingSchema         += new AddingSchamaHandler(_chartwizard_AddingSchema);
     _chartwizard.DeletingSchema       += new DeletingSchemaHandler(_chartwizard_DeletingSchema);
     _chartwizard.DefaultSchema        += new DefaultSchemaHandler(_chartwizard_DefaultSchema);
     _chartwizard.CopySchema           += new CopySchamaHandler(_chartwizard_CopySchema);
 }
 public static void RunChartWizard()
 {
     if (Instance.CurrentModuleBase != null)
     {
         ChartDemoBase chartModule = Instance.CurrentModuleBase.TModule as ChartDemoBase;
         if (chartModule != null)
         {
             ChartWizard chartWizard = new ChartWizard(chartModule.ChartControl);
             chartWizard.ShowDialog();
             chartModule.UpdateControls();
         }
     }
 }
Exemple #6
0
        private void chartWizardLink_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            ChartControl chart = new ChartControl();

            chart.DataSource = resultsGrid.DataSource;

            ChartWizard wizard = new ChartWizard(chart);

            wizard.ShowDialog();

            if (chart.Created)
            {
                Form form = new Form();
                chart.Dock = DockStyle.Fill;
                form.Controls.Add(chart);
                form.Show();
            }
        }
 public static void RunChartWizard()
 {
     if (Instance.CurrentModuleBase != null)
     {
         ChartDemoBase chartModule = Instance.CurrentModuleBase.TModule as ChartDemoBase;
         if (chartModule != null)
         {
             ChartWizard chartWizard = new ChartWizard(chartModule.ChartControl);
             chartWizard.ShowDialog();
             chartModule.UpdateControls();
         }
     }
 }