public bool ContainsChanges() { foreach (SheetRow sheetRow in sheetPage.rows) { foreach (SheetCell sheetCell in sheetRow.cells) { if (!sheetCell.dirty) { continue; } return(true); } } DatasheetType dataSheetType; if (!dataSheetIdentifier.TryGetIdentifierEnum(out dataSheetType)) { return(true); } SheetPage oldPage = ModelGeneration.DeconstructDatasheetCode(dataSheetType); if (!oldPage.CheckIfSameCodebase(sheetPage)) { return(true); } return(false); }
public DataSheet() { DatasheetType[] datasheetTypes = Enum.GetValues(typeof(DatasheetType)) as DatasheetType[]; datasheetPages = new SheetPage[datasheetTypes.Length]; for (int i = 0; i < datasheetTypes.Length; i++) { datasheetPages[i] = ModelGeneration.DeconstructDatasheetCode(datasheetTypes[i]); } }