public void generateAviliableFields(PressureLossReportData reportData) { if (doc == null) { return; } SectionsInfo.generateSectionFields(reportData); SegmentsInfo.generateSegmentFields(reportData); FittingsInfo.generateFittingFields(reportData); }
private void resetSettings() { if (settings == null) { settings = new PressureLossReportData(); } if (settings.AvailableFields == null || settings.AvailableFields.Count < 1) { SectionsInfo.generateSectionFields(settings); } if (settings.StraightSegFields == null || settings.StraightSegFields.Count < 1) { SegmentsInfo.generateSegmentFields(settings); } if (settings.FittingFields == null || settings.FittingFields.Count < 1) { FittingsInfo.generateFittingFields(settings); } }