Exemple #1
0
        public bool InitializeDocument(params object[] args)
        {
            if (args == null || args.Length == 0 || !(args[0] is PlotGroupStyleCollection))
            {
                return(false);
            }

            _origdoc = (PlotGroupStyleCollection)args[0];
            _doc     = _useDocument == UseDocument.Directly ? _origdoc : _origdoc.Clone();

            if (args.Length >= 2 && args[1] is IGPlotItem)
            {
                _parent = (IGPlotItem)args[1];
            }

            Initialize(true);
            return(true);
        }