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); } } }
internal void RemoveSheet(SheetBinder sheet) { this.Sheets.Remove(sheet); }
internal void AddSheet() { var sheet = new SheetBinder(this.sheetNumber++); this.Sheets.Add(sheet); }