public override bool Apply(bool disposeController)
        {
            if (!_scaleController.Apply(disposeController))
            {
                return(false);
            }

            if (!(_scaleController.ModelObject is Altaxo.Graph.Scales.NumericalScale))
            {
                Current.Gui.ErrorMessageBox("Please choose a numerical scale, since only those scales are supported here");
                return(false);
            }

            _doc.Scale = (Altaxo.Graph.Scales.NumericalScale)_scaleController.ModelObject;

            if (!_colorProviderController.Apply(disposeController))
            {
                return(false);
            }
            _doc.ColorProvider = (Altaxo.Graph.Gdi.Plot.IColorProvider)_colorProviderController.ModelObject;

            return(ApplyEnd(true, disposeController));
        }
Пример #2
0
        public override bool Apply(bool disposeController)
        {
            if (!_scaleController.Apply(disposeController))
            {
                return(false);
            }

            if (!(_scaleController.ModelObject is Altaxo.Graph.Scales.NumericalScale))
            {
                Current.Gui.ErrorMessageBox("Please choose a numerical scale, since only those scales are supported here");
                return(false);
            }

            _doc.Scale = (Altaxo.Graph.Scales.NumericalScale)_scaleController.ModelObject;

            _doc.SymbolSizeAt0     = _view.SymbolSizeAt0;
            _doc.SymbolSizeAt1     = _view.SymbolSizeAt1;
            _doc.SymbolSizeBelow   = _view.SymbolSizeBelow;
            _doc.SymbolSizeAbove   = _view.SymbolSizeAbove;
            _doc.SymbolSizeInvalid = _view.SymbolSizeInvalid;
            _doc.NumberOfSteps     = _view.NumberOfSteps;

            return(ApplyEnd(true, disposeController));
        }