Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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]);
            }
        }