Ejemplo n.º 1
0
        public void LoadGroup(MathExpGroup mathGroup)
        {
            bool b = _disableUndo;

            _disableUndo = true;
            ClearComponents();
            //
            IDesignServiceProvider sp = MathNode.GetGlobalServiceProvider(mathGroup);

            if (sp != null)
            {
                MathNode.RegisterGetGlobalServiceProvider(root, sp);
            }
            root.LoadGroup(mathGroup);
            designview_Resize(null, null);
            //
            picIcomImage.Size  = mathGroup.IconImage.IconSize;
            picIcomImage.Image = mathGroup.CreateIcon(root.CreateGraphics());
            enablePaste();
            root.Changed = false;
            bLoading     = false;
            root.Refresh();
            _disableUndo = b;
            result       = mathGroup;
        }