Example #1
0
        internal void AddExternSheet(int externBookIndex, int beginSheetIndex, int endSheetIndex)
        {
            ExcelExternSheet sheet = new ExcelExternSheet {
                fileName        = this.SupBooks[externBookIndex].FileName,
                beginSheetIndex = beginSheetIndex,
                beginSheetName  = this.GetExternSheetName(externBookIndex, beginSheetIndex),
                endSheetIndex   = endSheetIndex,
                endSheetName    = this.GetExternSheetName(externBookIndex, endSheetIndex)
            };

            this.ExternalSheets.Add(sheet);
        }
Example #2
0
        internal int GetExcelExternSheetIndex(ExcelExternSheet sheet)
        {
            int num;

            if (!this._excelExternSheets.TryGetValue(sheet, out num))
            {
                num = this.ExternalSheets.Count;
                this._excelExternSheets.Add(sheet, num);
                this.ExternalSheets.Add(sheet);
            }
            return(num);
        }