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(); }
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(); }
private void bOK_Click(object sender, System.EventArgs e) { string c = ""; switch (_Type) { case SingleCtlTypeEnum.InteractivityCtl: c = "Interactivity change"; break; case SingleCtlTypeEnum.VisibilityCtl: c = "Visibility change"; break; case SingleCtlTypeEnum.BorderCtl: c = "Border change"; break; case SingleCtlTypeEnum.FontCtl: c = "Appearance change"; break; case SingleCtlTypeEnum.BackgroundCtl: case SingleCtlTypeEnum.BackgroundImage: c = "Background change"; break; case SingleCtlTypeEnum.FiltersCtl: c = "Filters change"; break; case SingleCtlTypeEnum.SortingCtl: c = "Sort change"; break; case SingleCtlTypeEnum.GroupingCtl: c = "Grouping change"; break; case SingleCtlTypeEnum.ReportCodeCtl: c = "Report code change"; break; case SingleCtlTypeEnum.ImageCtl: c = "Image change"; break; case SingleCtlTypeEnum.SubreportCtl: c = "Subreport change"; break; case SingleCtlTypeEnum.ReportModulesClassesCtl: c = "Report Modules/Classes change"; break; } this._DesignCtl.StartUndoGroup(c); this._Ctl.Apply(); this._DesignCtl.EndUndoGroup(true); _DesignCtl.SignalReportChanged(); _Draw.Invalidate(); this.DialogResult = DialogResult.OK; }