示例#1
0
        public void ConvertFrom(IEnumerable <ISheetGenerator> obj)
        {
            var sheets = obj == null?Enumerable.Empty <Sheet>() : obj.OfType <Sheet>();

            if (sheets != null)
            {
                this.Sheets.Clear();
                foreach (var sheet in sheets)
                {
                    var sheetBinder = new SheetBinder();
                    sheetBinder.ConvertFrom(sheet);

                    this.Sheets.Add(sheetBinder);
                }
            }
        }
示例#2
0
 internal void RemoveSheet(SheetBinder sheet)
 {
     this.Sheets.Remove(sheet);
 }
示例#3
0
        internal void AddSheet()
        {
            var sheet = new SheetBinder(this.sheetNumber++);

            this.Sheets.Add(sheet);
        }