void SetBodyValue(string l, string v)
        {
            XmlNode rNode = _Draw.GetReportNode();
            XmlNode bNode = _Draw.GetNamedChildNode(rNode, "Body");

            _DesignCtl.StartUndoGroup("Body " + l + " change");
            _Draw.SetElement(bNode, l, v);
            _DesignCtl.EndUndoGroup(true);
            _DesignCtl.SignalReportChanged();
            _Draw.Invalidate();
        }
 public void EndUndoGroup(bool keepChanges)
 {
     if (_CurrentTab == "design")
     {
         dcDesign.EndUndoGroup(keepChanges);
     }
 }
Beispiel #3
0
        internal void SetName(XmlNode node, string name)
        {
            if (node == null)
            {
                return;
            }

            string n    = name.Trim();
            string nerr = _Draw.NameError(node, n);

            if (nerr != null)
            {
                throw new ApplicationException(nerr);
            }

            _DesignCtl.StartUndoGroup(Strings.PropertyReportItem_Undo_NameChange);
            _Draw.SetName(node, n);
            _DesignCtl.EndUndoGroup(true);
            _DesignCtl.SignalReportChanged();
            _Draw.Invalidate();
        }