Example #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="label">Label of component</param>
        public FormPointCollection(IObjectLabel label)
        {
            InitializeComponent();
            this.label = label;
            draw       = label.Object as DrawSeries;
            Text       = label.Name;
            string[] names = PointCollectionChooserFactory.Factory.Names;
            comboBoxType.FillCombo(names);
            PanelChart panel = new PanelChart(new int[, ] {
                { 80, 20 }, { 30, 40 }
            });

            panel.Width  = panelChart.Width - 100;
            panel.Height = panelChart.Height - 100;
            panel.Top    = 50;
            panel.Left   = 50;
            panel.Dock   = DockStyle.Fill;
            performer    = panel.Performer;
            performer.Resize();
            panelChart.Controls.Add(panel);
            SimpleCoordinator coordinator = new SimpleCoordinator(5, 5, performer);

            performer.Coordinator = coordinator;
            setChooser();
            string fn = draw.FactoryName;

            if (fn != null)
            {
                comboBoxType.SelectCombo(fn);
            }
        }
Example #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="series">Series for saving</param>
        /// <param name="comments">Comments for saving</param>
        public FormGraphSave(DataPerformer.Series series, ArrayList comments)
        {
            InitializeComponent();
            this.LoadResources();
            this.series.CopyFrom(series);
            //this.series.CopyFrom(series);
            PanelChart panel = new PanelChart(new int[, ] {
                { 80, 30 }, { 10, 40 }
            });

            panel.Width  = panelGraph.Width - 100;
            panel.Height = panelGraph.Height - 100;
            panel.Left   = 50;
            panel.Top    = 50;
            performer    = panel.Performer;
            panelGraph.Controls.Add(panel);
            panel.LoadResources();
            SimpleCoordinator coordinator = new SimpleCoordinator(5, 5, performer);

            performer.Coordinator = coordinator;
            EditorReceiver.AddEditorDrag(panelGraph);
            PictureReceiver.AddImageDrag(panelGraph);
            ControlPanel.LoadControls(panelGraph, comments);
            ISeries s = new SeriesGraph(series);

            performer.AddSeries(s, Color.Magenta);
            performer.RefreshAll();
        }
Example #3
0
        /// <summary>
        /// Post operation
        /// </summary>
        public void Post()
        {
            userControlChart.Prepare(new int[, ] {
                { 80, 30 }, { 10, 40 }
            }, true);
            performer = userControlChart.Performer;
            string[] names = PointCollectionChooserFactory.Factory.Names;
            comboBoxType.FillCombo(names);
            SimpleCoordinator coordinator = new SimpleCoordinator(5, 5, performer);

            performer.Coordinator = coordinator;
            setChooser();
            string fn = series.FactoryName;

            if (fn != null)
            {
                comboBoxType.SelectCombo(fn);
            }
        }
Example #4
0
        /// <summary>
        /// Pre initialization
        /// </summary>
        protected virtual void PreInit()
        {
            pic.Text = ResourceService.Resources.GetControlResource("Color", DataPerformer.UI.Utils.ControlUtilites.Resources);
            PanelChart panel = new PanelChart(new int[, ] {
                { 80, 30 }, { 10, 40 }
            });

            panel.SetObject(this);
            panelGraph.DragEnter += fileDragEnter;
            panelGraph.DragDrop  += fileDragDrop;
            performer             = panel.Performer;
            panelGraph.Controls.Add(panel);
            panel.LoadResources();
            panel.Dock = DockStyle.Fill;
            performer.Resize();
            SimpleCoordinator coordinator = new SimpleCoordinator(5, 5, performer);

            performer.Coordinator = coordinator;
            EditorReceiver.AddEditorDrag(panelGraph);
            PictureReceiver.AddImageDrag(panelGraph);
        }