private void CancelConfigure()
        {
            EasyChart beforeEasyChart = ((EasyChart)_beforeCtrl);

            _changedCtrl.Size = beforeEasyChart.Size;

            _changedCtrl.LegendVisible = beforeEasyChart.LegendVisible;
            _changedCtrl.YAutoEnable   = beforeEasyChart.YAutoEnable;
            double[] yAxisRange = new double[2];
            yAxisRange = beforeEasyChart.GetYAxisRange();
            if (!double.IsNaN(yAxisRange[0]))
            {
                _changedCtrl.AxisYMax = (int)yAxisRange[0];
            }
            if (!double.IsNaN(yAxisRange[1]))
            {
                _changedCtrl.AxisYMin = (int)yAxisRange[1];
            }

            _changedCtrl.EasyChartBackColor = beforeEasyChart.EasyChartBackColor;
            _changedCtrl.ChartAreaBackColor = beforeEasyChart.ChartAreaBackColor;
            _changedCtrl.LegendBackColor    = beforeEasyChart.LegendBackColor;
            _changedCtrl.GradientStyle      = beforeEasyChart.GradientStyle;
            _changedCtrl.XAxisLogarithmic   = beforeEasyChart.XAxisLogarithmic;
            _changedCtrl.YAxisLogarithmic   = beforeEasyChart.YAxisLogarithmic;
        }
示例#2
0
        //The constructor associates the control with the smart tag list.
        public EasyChartActionList(IComponent component)
            : base(component)
        {
            this.colUserControl = component as EasyChart;

            this.designerActionUISvc = GetService(typeof(DesignerActionUIService)) as DesignerActionUIService;
        }
 public EasyChartProperty(EasyChart _ctrl)
 {
     InitializeComponent();
     _beforeCtrl       = ControlFactory.CloneCtrl(_ctrl);
     _changedCtrl      = _ctrl;
     windowCloseButton = false;
 }
        //        private bool _isUserChangedView = false;

        #region Constrctor

        internal EasyChartCursor(EasyChart baseEasyChart, Cursor baseCursor, Axis baseAxis, string cursorName)
        {
            this._baseEasyChart = baseEasyChart;
            this._baseCursor    = baseCursor;
            this._baseAxis      = baseAxis;
            this.Name           = cursorName;
        }
示例#5
0
 internal void Initialize(EasyChart baseEasyChart, Axis baseAxis)
 {
     this.Name           = baseAxis.Name;
     this._baseEasyChart = baseEasyChart;
     this._baseAxis      = baseAxis;
     this.Maximum        = _specifiedMax;
     this.Minimum        = _specifiedMin;
     this.ViewMaximum    = _viewMax;
     this.ViewMinimum    = _viewMin;
 }
示例#6
0
//        private bool _isUserChangedView = false;

        #region Constrctor

        /// <summary>
        /// Constructor for design
        /// </summary>
        public EasyChartAxis()
        {
            this._baseEasyChart    = null;
            this._baseAxis         = null;
            this.Maximum           = double.NaN;
            this.Minimum           = double.NaN;
            this.ViewMaximum       = double.NaN;
            this.ViewMinimum       = double.NaN;
            this.InitWithScaleView = false;
        }
示例#7
0
 public Set_YAxis_Range(EasyChart easyChartObj)
 {
     InitializeComponent();
     easyChartForm  = easyChartObj;
     YAutoScaleFlag = easyChartForm.YAutoEnable;
     if (YAutoScaleFlag)
     {
         easyChartForm.YAutoEnable = false;
     }
     double[] yAxisRange = new double[2];
     yAxisRange = easyChartForm.GetYAxisRange();
     numericUpDownYMax.Value = (decimal)yAxisRange[0];
     numericUpDownYMin.Value = (decimal)yAxisRange[1];
 }