private void GridForm_SaveDefaultLayout(GridForm m, SaveLayoutEventArgs e) { ReportCentral rc = (ReportCentral)View.CurrentObject; ReportCentralLayoutData layoutData = this.ObjectSpace.CreateObject <ReportCentralLayoutData>(); rc.Save(); ObjectSpace.CommitChanges(); }
private void PivotForm_SaveDefaultLayout(PivotFormWin m, SaveLayoutEventArgs e) { ReportCentral rc = (ReportCentral)View.CurrentObject; rc.PivotViewXML = e.LayoutXML; MediaDataObject mediaDataObject = ObjectSpace.CreateObject <MediaDataObject>(); mediaDataObject.MediaData = ConvertBitMapToByteArray(e.ImageData); rc.PivotLayout = mediaDataObject; rc.Save(); ObjectSpace.CommitChanges(); }