Example #1
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 #2
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);
        }