protected void SaveData() { if (GetChangeStatus()) { generalInformationControl.SaveData(); referenceDataControl.SaveData(); complianceDataControl.SaveData(); complianceTermsControl.SaveData(); incorporationPlaceControl.SaveData(); affectedDocumentsControl.SaveData(); referenceDocumentsControl.SaveData(); referenceDrawingsControl.SaveData(); MJOControl.SaveData(); sparePartKitControl.SaveData(); consumableMaterialsControl.SaveData(); equipmentToolsGSEControl.SaveData(); try { directive.Save(true); UpdateScreen(); } catch (Exception ex) { Program.Provider.Logger.Log("Error while saving data", ex); } } }
protected bool AddNewDirective(bool changePageName) { if (generalInformationControl.ATAChapter == null) { MessageBox.Show("Please select ATA chapter", (string)new TermsProvider()["SystemName"], MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return(false); } else { generalInformationControl.SaveData(addedDirective, changePageName); complianceDataControl.SaveData(addedDirective); complianceTermsControl.SaveData(addedDirective); incorporationPlaceControl.SaveData(addedDirective); parentBaseDetail.Add(addedDirective); return(true); } }