示例#1
0
        private void GridForm_SaveDefaultLayout(GridForm m, SaveLayoutEventArgs e)
        {
            ReportCentral           rc         = (ReportCentral)View.CurrentObject;
            ReportCentralLayoutData layoutData = this.ObjectSpace.CreateObject <ReportCentralLayoutData>();

            rc.Save();
            ObjectSpace.CommitChanges();
        }
示例#2
0
        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();
        }